]> Untitled Git - bdk/commitdiff
Clear clippy manual_map warning
authorTobin Harding <me@tobin.cc>
Tue, 11 May 2021 00:47:18 +0000 (10:47 +1000)
committerTobin Harding <me@tobin.cc>
Tue, 11 May 2021 00:52:07 +0000 (10:52 +1000)
The lint `manual_map` is new so we cannot explicitly allow it and
maintain backwards comparability. Instead, allow all lints for
`get_utxo_for` with a comment explaining why.

src/psbt/mod.rs

index 2bda485299786954a9c4622bb1e7c274b37f8dbd..1b4da36473af5cf9825be5df64d90ef0f2431681 100644 (file)
@@ -17,6 +17,7 @@ pub trait PsbtUtils {
 }
 
 impl PsbtUtils for Psbt {
+    #[allow(clippy::all)] // We want to allow `manual_map` but it is too new.
     fn get_utxo_for(&self, input_index: usize) -> Option<TxOut> {
         let tx = &self.global.unsigned_tx;