Skip to content

Commit

Permalink
Merge #938: Allow deprecated function call
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sanket1729 committed Apr 11, 2022
2 parents cb4d34f + 29843c4 commit 96edd94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/psbt/map/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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 });
}
Expand Down

0 comments on commit 96edd94

Please sign in to comment.