Skip to content

Commit 8ef905d

Browse files
committed
Implement From on u8 for RecoveryId instead of i32
The `i32` is a hangover from before #743, now we have a nice enum and a `from_u8_masked` constructor (along with a `to_u8` getter) lets make the `From<RecoveryId>` impl be on `u8` instead of on `i32`.
1 parent 9b4fa8b commit 8ef905d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ecdsa/recovery.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ impl TryFrom<i32> for RecoveryId {
6262
}
6363
}
6464

65-
impl From<RecoveryId> for i32 {
65+
impl From<RecoveryId> for u8 {
6666
#[inline]
6767
fn from(val: RecoveryId) -> Self {
6868
match val {

0 commit comments

Comments
 (0)