diff options
Diffstat (limited to 'vendor/signature/tests')
-rw-r--r-- | vendor/signature/tests/derive.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vendor/signature/tests/derive.rs b/vendor/signature/tests/derive.rs index 70e2dc0fc..b54eec823 100644 --- a/vendor/signature/tests/derive.rs +++ b/vendor/signature/tests/derive.rs @@ -1,6 +1,6 @@ //! Tests for code generated by `signature_derive` -#![cfg(feature = "derive")] +#![cfg(all(feature = "derive", feature = "digest"))] use digest::{generic_array::GenericArray, Digest, OutputSizeUser}; use hex_literal::hex; @@ -35,9 +35,7 @@ impl TryFrom<&[u8]> for DummySignature { type Error = Error; fn try_from(bytes: &[u8]) -> Result<Self, Error> { - Ok(DummySignature(GenericArray::clone_from_slice( - bytes.as_ref(), - ))) + Ok(DummySignature(GenericArray::clone_from_slice(bytes))) } } |