Skip to content

Commit

Permalink
clippy: fix latest problems from clippy nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
phip1611 committed Nov 4, 2024
1 parent b8b76bd commit 8d97841
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@ mod tests {
parent: Option<RefMut<'a, DropTest>>,
}

impl<'a> Drop for Dropee<'a> {
impl Drop for Dropee<'_> {
fn drop(&mut self) {
if let Some(parent) = &mut self.parent {
parent.flag = true;
Expand Down
2 changes: 1 addition & 1 deletion src/with_alloc/alloc_ringbuffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,6 @@ mod tests {
let mut buf = AllocRingBuffer::new(3);
let elems = [1, 2, 3];
buf.extend_from_slice(&elems);
assert_eq!(buf.to_vec().as_slice(), elems)
assert_eq!(buf.to_vec().as_slice(), elems);
}
}
2 changes: 1 addition & 1 deletion src/with_alloc/vecdeque.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,6 @@ mod tests {
let mut buf = GrowableAllocRingBuffer::new();
let elems = [1, 2, 3];
buf.extend_from_slice(&elems);
assert_eq!(buf.to_vec().as_slice(), elems)
assert_eq!(buf.to_vec().as_slice(), elems);
}
}
2 changes: 1 addition & 1 deletion src/with_const_generics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ mod tests {
let mut buf = ConstGenericRingBuffer::<i32, 3>::new();
let elems = [1, 2, 3];
buf.extend_from_slice(&elems);
assert_eq!(buf.to_vec().as_slice(), elems)
assert_eq!(buf.to_vec().as_slice(), elems);
}
}
}

0 comments on commit 8d97841

Please sign in to comment.