Skip to content

Commit

Permalink
cargo fix; add lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
grandima committed Oct 29, 2024
1 parent b6a3140 commit ea15d09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/primitives/src/signature/ecdsa_sig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions crates/primitives/src/signature/super_signature.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::{Parity, U256};
use crate::SignatureError;

#[cfg(not(feature = "rlp"))]
pub trait RlpSuperSig {}
Expand All @@ -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 {}
for <'a>arbitrary::Arbitrary<'a> {}

0 comments on commit ea15d09

Please sign in to comment.