From 7f06dc333058b40ec648b2ac6fe6e2cb5a73546d Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Tue, 11 May 2021 10:47:18 +1000 Subject: [PATCH] Clear clippy manual_map warning 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/psbt/mod.rs b/src/psbt/mod.rs index 2bda4852..1b4da364 100644 --- a/src/psbt/mod.rs +++ b/src/psbt/mod.rs @@ -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 { let tx = &self.global.unsigned_tx;