chore: apply new lint warnings from latest clippy (#561)

This commit is contained in:
Santiago Carmuega 2024-12-14 17:37:33 -03:00 committed by GitHub
parent e21895206c
commit b483b3a17a
23 changed files with 185 additions and 171 deletions

View file

@ -13,7 +13,7 @@ pub struct Decoder<'b> {
}
impl<'b> Decoder<'b> {
pub fn new(bytes: &'b [u8]) -> Decoder {
pub fn new(bytes: &'b [u8]) -> Decoder<'b> {
Decoder {
buffer: bytes,
pos: 0,

View file

@ -1120,7 +1120,7 @@ impl<'b, T> KeepRaw<'b, T> {
}
}
impl<'b, T> Deref for KeepRaw<'b, T> {
impl<T> Deref for KeepRaw<'_, T> {
type Target = T;
fn deref(&self) -> &Self::Target {