Skip to content

Commit 8e07237

Browse files
committed
Allow deprecated function call
We have a deprecated function call because of the MSRV, tell clippy to ignore it.
1 parent 6f83e22 commit 8e07237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/psbt/map/input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ impl fmt::Display for PsbtSighashType {
166166
}
167167
}
168168

169+
#[allow(deprecated)] // TODO: Swap `trim_left_matches` for `trim_start_matches` once MSRV >= 1.30.
169170
impl FromStr for PsbtSighashType {
170171
type Err = SighashTypeParseError;
171172

@@ -183,7 +184,6 @@ impl FromStr for PsbtSighashType {
183184
}
184185

185186
// We accept non-standard sighash values.
186-
// TODO: Swap `trim_left_matches` for `trim_start_matches` once MSRV >= 1.30.
187187
if let Ok(inner) = u32::from_str_radix(s.trim_left_matches("0x"), 16) {
188188
return Ok(PsbtSighashType { inner });
189189
}

0 commit comments

Comments
 (0)