Skip to content

Commit 0f4434c

Browse files
author
Stephan Dilly
committed
cleanup
1 parent 8448885 commit 0f4434c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/notify_mutex.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ impl<T> NotifyableMutex<T> {
1515
}
1616

1717
///
18-
#[allow(clippy::needless_pass_by_value)]
1918
pub fn wait(&self, condition: T)
2019
where
21-
T: PartialEq,
20+
T: PartialEq + Copy,
2221
{
2322
let mut data = self.data.0.lock().expect("lock err");
2423
while *data != condition {

0 commit comments

Comments
 (0)