diff options
| author | Stefan Lankes <slankes@eonerc.rwth-aachen.de> | 2020-06-26 19:51:55 +0200 |
|---|---|---|
| committer | Stefan Lankes <slankes@eonerc.rwth-aachen.de> | 2020-06-26 19:51:55 +0200 |
| commit | f9c609164251abc136eb9bda55c92cb99adb5c86 (patch) | |
| tree | 28704aadd0cd7096196feae047ea1bb59a176cf7 /src/libstd/sys | |
| parent | beb1b1fa5b1047c7caf8a1d499725df3c1ad8cad (diff) | |
| download | rust-f9c609164251abc136eb9bda55c92cb99adb5c86.tar.gz rust-f9c609164251abc136eb9bda55c92cb99adb5c86.zip | |
remove some compiler warnings
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/hermit/condvar.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libstd/sys/hermit/condvar.rs b/src/libstd/sys/hermit/condvar.rs index e41d4eb4fa7..52c8c3b17e8 100644 --- a/src/libstd/sys/hermit/condvar.rs +++ b/src/libstd/sys/hermit/condvar.rs @@ -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"); } |
