Skip to content

Commit

Permalink
dont need a fallible error now that we aren't wrapping bs58 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xoloki committed Jan 25, 2024
1 parent 4a17b0c commit 42ef758
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions p256k1/src/point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,7 @@ impl TryFrom<&Compressed> for Point {
let ry = secp256k1_ge_set_xo_var(
&mut y,
&x,
(c.data[0] as u32 == SECP256K1_TAG_PUBKEY_ODD)
.try_into()
.unwrap(),
(c.data[0] as u32 == SECP256K1_TAG_PUBKEY_ODD).into(),
);
if ry == 0 {
return Err(Error::Conversion(ConversionError::BadGroupElement));
Expand Down

0 comments on commit 42ef758

Please sign in to comment.