From 84d608ba27b1af74f888421f798ba83dea72f0c8 Mon Sep 17 00:00:00 2001 From: Jose Celano Date: Wed, 30 Oct 2024 16:49:56 +0000 Subject: [PATCH] fix: clippy error in nightly --- contrib/bencode/src/access/bencode.rs | 2 +- packages/located-error/src/lib.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/bencode/src/access/bencode.rs b/contrib/bencode/src/access/bencode.rs index ee90296e2..728535a98 100644 --- a/contrib/bencode/src/access/bencode.rs +++ b/contrib/bencode/src/access/bencode.rs @@ -50,7 +50,7 @@ pub trait BRefAccessExt<'a>: BRefAccess { fn bytes_ext(&self) -> Option<&'a [u8]>; } -impl<'a, T> BRefAccess for &'a T +impl BRefAccess for &T where T: BRefAccess, { diff --git a/packages/located-error/src/lib.rs b/packages/located-error/src/lib.rs index 3cba6042d..c30043cd3 100644 --- a/packages/located-error/src/lib.rs +++ b/packages/located-error/src/lib.rs @@ -50,7 +50,7 @@ where location: Box>, } -impl<'a, E> std::fmt::Display for LocatedError<'a, E> +impl std::fmt::Display for LocatedError<'_, E> where E: Error + ?Sized + Send + Sync, { @@ -59,7 +59,7 @@ where } } -impl<'a, E> Error for LocatedError<'a, E> +impl Error for LocatedError<'_, E> where E: Error + ?Sized + Send + Sync + 'static, { @@ -68,7 +68,7 @@ where } } -impl<'a, E> Clone for LocatedError<'a, E> +impl Clone for LocatedError<'_, E> where E: Error + ?Sized + Send + Sync, {