Skip to content

Commit

Permalink
fix: clippy error in nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Oct 30, 2024
1 parent 874b3c7 commit 84d608b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contrib/bencode/src/access/bencode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub trait BRefAccessExt<'a>: BRefAccess {
fn bytes_ext(&self) -> Option<&'a [u8]>;
}

impl<'a, T> BRefAccess for &'a T
impl<T> BRefAccess for &T
where
T: BRefAccess,
{
Expand Down
6 changes: 3 additions & 3 deletions packages/located-error/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ where
location: Box<Location<'a>>,
}

impl<'a, E> std::fmt::Display for LocatedError<'a, E>
impl<E> std::fmt::Display for LocatedError<'_, E>
where
E: Error + ?Sized + Send + Sync,
{
Expand All @@ -59,7 +59,7 @@ where
}
}

impl<'a, E> Error for LocatedError<'a, E>
impl<E> Error for LocatedError<'_, E>
where
E: Error + ?Sized + Send + Sync + 'static,
{
Expand All @@ -68,7 +68,7 @@ where
}
}

impl<'a, E> Clone for LocatedError<'a, E>
impl<E> Clone for LocatedError<'_, E>
where
E: Error + ?Sized + Send + Sync,
{
Expand Down

0 comments on commit 84d608b

Please sign in to comment.