From 6799e41c46e12ac0753aec3117be2294febe77b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Cig=C3=A1nek?= Date: Wed, 11 Dec 2024 11:09:12 +0100 Subject: [PATCH] Fix even more clippy warnings --- lib/src/crypto/hash.rs | 2 +- lib/src/version_vector.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {