mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 17:08:21 +00:00
cleanup
This commit is contained in:
parent
84488855fe
commit
0f4434cdb6
1 changed files with 1 additions and 2 deletions
|
|
@ -15,10 +15,9 @@ impl<T> NotifyableMutex<T> {
|
|||
}
|
||||
|
||||
///
|
||||
#[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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue