Skip to content

Commit

Permalink
clippy: elide unnecessary lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
miek committed Dec 2, 2024
1 parent a15f3d5 commit f8b870b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ fn fmt_str_id(strings: &VecMap<StringId, UTF16ByteVec>, id: StringId)

pub struct UTF16Bytes<'b>(&'b [u8]);

impl<'b> UTF16Bytes<'b> {
impl UTF16Bytes<'_> {
fn chars(&self) -> Vec<u16> {
self.0.chunks_exact(2)
.map(|a| u16::from_le_bytes([a[0], a[1]]))
Expand Down

0 comments on commit f8b870b

Please sign in to comment.