Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Mar 11, 2024
1 parent 7cb862c commit 7378b28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,7 @@ impl FromHex for Vec<i8> {
#[inline]
fn from_hex<T: AsRef<[u8]>>(hex: T) -> Result<Self, Self::Error> {
// SAFETY: transmuting `u8` to `i8` is safe.
crate::decode(hex.as_ref())
.map(|vec| unsafe { core::mem::transmute::<Vec<u8>, Self>(vec) })
crate::decode(hex.as_ref()).map(|vec| unsafe { core::mem::transmute::<Vec<u8>, Self>(vec) })
}
}

Expand Down

0 comments on commit 7378b28

Please sign in to comment.