diff --git a/lib/src/crypto/hash.rs b/lib/src/crypto/hash.rs index b8c31daa3..ac3923fd1 100644 --- a/lib/src/crypto/hash.rs +++ b/lib/src/crypto/hash.rs @@ -138,7 +138,7 @@ pub trait Hashable { } } -impl Hashable for &T +impl Hashable for &'_ T where T: Hashable + ?Sized, { diff --git a/lib/src/version_vector.rs b/lib/src/version_vector.rs index 1c8fed72b..7666d9a65 100644 --- a/lib/src/version_vector.rs +++ b/lib/src/version_vector.rs @@ -146,7 +146,7 @@ impl FromIterator<(PublicKey, u64)> for VersionVector { } } -impl Add for &VersionVector { +impl Add for &'_ VersionVector { type Output = VersionVector; fn add(self, other: Self) -> Self::Output {