remove some compiler warnings

This commit is contained in:
Stefan Lankes 2020-06-26 19:51:55 +02:00
parent beb1b1fa5b
commit f9c6091642

View file

@ -1,6 +1,4 @@
use crate::cmp;
use crate::ffi::c_void;
use crate::mem;
use crate::ptr;
use crate::sync::atomic::{AtomicUsize, Ordering::SeqCst};
use crate::sys::hermit::abi;
@ -55,7 +53,7 @@ impl Condvar {
mutex.lock();
}
pub unsafe fn wait_timeout(&self, mutex: &Mutex, dur: Duration) -> bool {
pub unsafe fn wait_timeout(&self, _mutex: &Mutex, _dur: Duration) -> bool {
panic!("wait_timeout not supported on hermit");
}