Skip to content

Commit

Permalink
chore(lint): allow needless lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
jeertmans committed Dec 2, 2024
1 parent 627cde0 commit 0e11f82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ pub trait Chunk<'source>: Sized + Copy + PartialEq + Eq {
fn from_slice(s: &'source [u8]) -> Option<Self>;
}

impl Chunk<'_> for u8 {
#[allow(clippy::needless_lifetimes)]
impl<'source> Chunk<'source> for u8 {
const SIZE: usize = 1;

#[inline]
Expand Down

0 comments on commit 0e11f82

Please sign in to comment.