From 8d97841ff1b5f20df7be04f124188bfe405bf428 Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Thu, 24 Oct 2024 11:34:15 +0200 Subject: [PATCH] clippy: fix latest problems from clippy nightly --- src/lib.rs | 2 +- src/with_alloc/alloc_ringbuffer.rs | 2 +- src/with_alloc/vecdeque.rs | 2 +- src/with_const_generics.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index fc70842..8c03366a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1376,7 +1376,7 @@ mod tests { parent: Option>, } - impl<'a> Drop for Dropee<'a> { + impl Drop for Dropee<'_> { fn drop(&mut self) { if let Some(parent) = &mut self.parent { parent.flag = true; diff --git a/src/with_alloc/alloc_ringbuffer.rs b/src/with_alloc/alloc_ringbuffer.rs index 3af05f3..41986b4 100644 --- a/src/with_alloc/alloc_ringbuffer.rs +++ b/src/with_alloc/alloc_ringbuffer.rs @@ -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); } } diff --git a/src/with_alloc/vecdeque.rs b/src/with_alloc/vecdeque.rs index 8bc57af..2217e49 100644 --- a/src/with_alloc/vecdeque.rs +++ b/src/with_alloc/vecdeque.rs @@ -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); } } diff --git a/src/with_const_generics.rs b/src/with_const_generics.rs index 73499bb..69fbada 100644 --- a/src/with_const_generics.rs +++ b/src/with_const_generics.rs @@ -501,7 +501,7 @@ mod tests { let mut buf = ConstGenericRingBuffer::::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); } } }