Remove From<EcdsaSigHashType> for u32
We have conversion functions that include suffixes `_consensus` and `_standard` to make it explicit what guarantees are provided by the returned `u32` value. The `From` implementation reduces the clarity of the API.
This commit is contained in:
parent
b7adaf69f3
commit
2bd71c3748
|
@ -859,12 +859,6 @@ impl EcdsaSigHashType {
|
|||
pub fn as_u32(self) -> u32 { self as u32 }
|
||||
}
|
||||
|
||||
impl From<EcdsaSigHashType> for u32 {
|
||||
fn from(t: EcdsaSigHashType) -> u32 {
|
||||
t.as_u32()
|
||||
}
|
||||
}
|
||||
|
||||
/// Error returned when parsing `SigHashType` fails.
|
||||
///
|
||||
/// This is currently returned for unrecognized sighash strings.
|
||||
|
|
Loading…
Reference in New Issue