From: Tobin Harding Date: Tue, 11 May 2021 00:47:18 +0000 (+1000) Subject: Clear clippy manual_map warning X-Git-Tag: v0.8.0~9^2~1 X-Git-Url: http://internal-gitweb-vhost/%22https:/parse/scripts/database/-script/enum.FromScriptError.html?a=commitdiff_plain;h=7f06dc333058b40ec648b2ac6fe6e2cb5a73546d;p=bdk 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. --- 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;