diff --git a/crates/primitives/src/signature/ecdsa_sig.rs b/crates/primitives/src/signature/ecdsa_sig.rs index 3076b0a38..b4121542f 100644 --- a/crates/primitives/src/signature/ecdsa_sig.rs +++ b/crates/primitives/src/signature/ecdsa_sig.rs @@ -799,7 +799,7 @@ mod tests { #[cfg(feature = "rlp")] #[test] fn test_encode_and_decode() { - let signature: dyn Signature = EcdsaSignature::test_signature(); + let signature = EcdsaSignature::test_signature(); let mut encoded = Vec::new(); signature.encode(&mut encoded); diff --git a/crates/primitives/src/signature/super_signature.rs b/crates/primitives/src/signature/super_signature.rs index 0cd18da24..4669b7ec8 100644 --- a/crates/primitives/src/signature/super_signature.rs +++ b/crates/primitives/src/signature/super_signature.rs @@ -1,4 +1,4 @@ -use crate::{Parity, U256}; +use crate::SignatureError; #[cfg(not(feature = "rlp"))] pub trait RlpSuperSig {} @@ -16,11 +16,11 @@ pub trait K256SuperSig: From<(k256::ecdsa::Signature, k256::ecdsa::RecoveryId)> pub trait SerdeSuperSig {} #[cfg(feature = "serde")] -pub trait SerdeSuperSig: serde::Serialize + serde::Deserialize {} +pub trait SerdeSuperSig: serde::Serialize + for <'a>serde::Deserialize<'a> {} #[cfg(not(feature = "arbitrary"))] pub trait ArbitrarySuperSig {} #[cfg(feature = "arbitrary")] pub trait ArbitrarySuperSig: -arbitrary::Arbitrary {} \ No newline at end of file +for <'a>arbitrary::Arbitrary<'a> {} \ No newline at end of file