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 {