Skip to content

Commit f409fe4

Browse files
author
ChallengeDev210
committed
Merge rust-bitcoin/rust-bitcoin#938: Allow deprecated function call
29843c4 Allow deprecated function call (Tobin Harding) Pull request description: We have a deprecated function call because of the MSRV, tell clippy to ignore it. ACKs for top commit: Kixunil: ACK 29843c4 conditioned on adding this to MSRV bump TODO list. sanket1729: ACK 29843c4. Tree-SHA512: 3e2bf95d05c3baff4f01c447717dde4e78d686cbc6f720591f6656ce1e5d8cf3a276a0c3dc0016dea357b61350091778d4500a59427ea9863eb5bb9344b822e4
2 parents 6f83e22 + 8e07237 commit f409fe4

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)