From f8b870b5b02a3c718046cb9298f7773d292c1e11 Mon Sep 17 00:00:00 2001 From: Mike Walters Date: Mon, 2 Dec 2024 12:29:14 +0000 Subject: [PATCH] clippy: elide unnecessary lifetime --- src/usb.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usb.rs b/src/usb.rs index e7d973e8..38dd0360 100644 --- a/src/usb.rs +++ b/src/usb.rs @@ -1270,7 +1270,7 @@ fn fmt_str_id(strings: &VecMap, id: StringId) pub struct UTF16Bytes<'b>(&'b [u8]); -impl<'b> UTF16Bytes<'b> { +impl UTF16Bytes<'_> { fn chars(&self) -> Vec { self.0.chunks_exact(2) .map(|a| u16::from_le_bytes([a[0], a[1]]))