We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f83e22 commit 8e07237Copy full SHA for 8e07237
src/util/psbt/map/input.rs
@@ -166,6 +166,7 @@ impl fmt::Display for PsbtSighashType {
166
}
167
168
169
+#[allow(deprecated)] // TODO: Swap `trim_left_matches` for `trim_start_matches` once MSRV >= 1.30.
170
impl FromStr for PsbtSighashType {
171
type Err = SighashTypeParseError;
172
@@ -183,7 +184,6 @@ impl FromStr for PsbtSighashType {
183
184
185
186
// We accept non-standard sighash values.
- // TODO: Swap `trim_left_matches` for `trim_start_matches` once MSRV >= 1.30.
187
if let Ok(inner) = u32::from_str_radix(s.trim_left_matches("0x"), 16) {
188
return Ok(PsbtSighashType { inner });
189
0 commit comments