]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/sys/itron/condvar.rs
Rollup merge of #105615 - WaffleLapkin:remove_opt_scope_span_mention, r=compiler...
[rust.git] / library / std / src / sys / itron / condvar.rs
index f70aa434e48348b3b5289a52cdbc632d2f625b2e..7a47cc6696a34908a0bea6f832dbf14e8b68087d 100644 (file)
@@ -71,7 +71,7 @@ pub unsafe fn wait(&self, mutex: &Mutex) {
             }
         }
 
-        unsafe { mutex.lock() };
+        mutex.lock();
     }
 
     pub unsafe fn wait_timeout(&self, mutex: &Mutex, dur: Duration) -> bool {
@@ -109,7 +109,7 @@ pub unsafe fn wait_timeout(&self, mutex: &Mutex, dur: Duration) -> bool {
         // we woke up because of `notify_*`.
         let success = self.waiters.with_locked(|waiters| unsafe { !waiters.remove(waiter) });
 
-        unsafe { mutex.lock() };
+        mutex.lock();
         success
     }
 }