diff --git a/src/util/psbt/map/input.rs b/src/util/psbt/map/input.rs index 1aca4bfd..113f0626 100644 --- a/src/util/psbt/map/input.rs +++ b/src/util/psbt/map/input.rs @@ -166,7 +166,6 @@ 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; @@ -184,7 +183,7 @@ impl FromStr for PsbtSighashType { } // We accept non-standard sighash values. - if let Ok(inner) = u32::from_str_radix(s.trim_left_matches("0x"), 16) { + if let Ok(inner) = u32::from_str_radix(s.trim_start_matches("0x"), 16) { return Ok(PsbtSighashType { inner }); }