From 29843c41efa2ee57ff46e3e3e1f82c728cc22df6 Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Mon, 4 Apr 2022 16:20:11 +1000 Subject: [PATCH] Allow deprecated function call We have a deprecated function call because of the MSRV, tell clippy to ignore it. --- src/util/psbt/map/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/psbt/map/input.rs b/src/util/psbt/map/input.rs index a737cbdb..1aca4bfd 100644 --- a/src/util/psbt/map/input.rs +++ b/src/util/psbt/map/input.rs @@ -166,6 +166,7 @@ impl fmt::Display for PsbtSighashType { } } +#[allow(deprecated)] // TODO: Swap `trim_left_matches` for `trim_start_matches` once MSRV >= 1.30. impl FromStr for PsbtSighashType { type Err = SighashTypeParseError; @@ -183,7 +184,6 @@ impl FromStr for PsbtSighashType { } // We accept non-standard sighash values. - // TODO: Swap `trim_left_matches` for `trim_start_matches` once MSRV >= 1.30. if let Ok(inner) = u32::from_str_radix(s.trim_left_matches("0x"), 16) { return Ok(PsbtSighashType { inner }); }