Skip to content

Commit

Permalink
Merge pull request #212 from miek/clippy-fix
Browse files Browse the repository at this point in the history
clippy: elide unnecessary lifetime
  • Loading branch information
martinling authored Dec 2, 2024
2 parents a15f3d5 + f8b870b commit 12a867b
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 12a867b

Please sign in to comment.