From dc0db358abe19481e475e10c32149b53370f1a1c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 30 May 2024 05:57:31 +0200 Subject: Merging upstream version 1.72.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/crossbeam-epoch/src/deferred.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'vendor/crossbeam-epoch/src') diff --git a/vendor/crossbeam-epoch/src/deferred.rs b/vendor/crossbeam-epoch/src/deferred.rs index 2f3d79fdf..041955f52 100644 --- a/vendor/crossbeam-epoch/src/deferred.rs +++ b/vendor/crossbeam-epoch/src/deferred.rs @@ -89,10 +89,9 @@ impl Deferred { #[cfg(all(test, not(crossbeam_loom)))] mod tests { - #![allow(clippy::drop_copy)] - use super::Deferred; use std::cell::Cell; + use std::convert::identity; #[test] fn on_stack() { @@ -100,7 +99,7 @@ mod tests { let a = [0usize; 1]; let d = Deferred::new(move || { - drop(a); + let _ = identity(a); fired.set(true); }); @@ -115,7 +114,7 @@ mod tests { let a = [0usize; 10]; let d = Deferred::new(move || { - drop(a); + let _ = identity(a); fired.set(true); }); -- cgit v1.2.3