From 0f4434cdb6c26a624236da8e6c65fcdbdb5e5ac0 Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Tue, 8 Jun 2021 00:04:52 +0200 Subject: [PATCH] cleanup --- src/notify_mutex.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/notify_mutex.rs b/src/notify_mutex.rs index aacf6035..5aaa5d54 100644 --- a/src/notify_mutex.rs +++ b/src/notify_mutex.rs @@ -15,10 +15,9 @@ impl NotifyableMutex { } /// - #[allow(clippy::needless_pass_by_value)] pub fn wait(&self, condition: T) where - T: PartialEq, + T: PartialEq + Copy, { let mut data = self.data.0.lock().expect("lock err"); while *data != condition {