diff --git a/src/pkcs1v15/signature.rs b/src/pkcs1v15/signature.rs index 4a69512..0d274d5 100644 --- a/src/pkcs1v15/signature.rs +++ b/src/pkcs1v15/signature.rs @@ -36,7 +36,7 @@ impl TryFrom<&[u8]> for Signature { fn try_from(bytes: &[u8]) -> signature::Result { let len = bytes.len(); let inner = BoxedUint::from_be_slice(bytes, len as u32 * 8) - .map_err(|e| Box::new(e) as Box)?; + .map_err(|e| Box::new(e) as Box)?; Ok(Self { inner }) } diff --git a/src/pss/signature.rs b/src/pss/signature.rs index 665e8d9..5e986cd 100644 --- a/src/pss/signature.rs +++ b/src/pss/signature.rs @@ -36,7 +36,7 @@ impl TryFrom<&[u8]> for Signature { fn try_from(bytes: &[u8]) -> signature::Result { let len = bytes.len(); let inner = BoxedUint::from_be_slice(bytes, len as u32 * 8) - .map_err(|e| Box::new(e) as Box)?; + .map_err(|e| Box::new(e) as Box)?; Ok(Self { inner }) }