Skip to content

Commit ad9bd64

Browse files
committed
fix windows compile
1 parent 8bffd25 commit ad9bd64

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

core/src/monitor.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -608,9 +608,7 @@ mod tests {
608608
use std::sync::atomic::{AtomicBool, Ordering};
609609
use std::time::Duration;
610610
use windows_sys::Win32::Foundation::{CloseHandle, DuplicateHandle, DUPLICATE_SAME_ACCESS};
611-
use windows_sys::Win32::System::Threading::{
612-
GetCurrentProcess, GetCurrentThread, ResumeThread, SuspendThread,
613-
};
611+
use windows_sys::Win32::System::Threading::{GetCurrentProcess, GetCurrentThread};
614612

615613
static THREAD_RAN: AtomicBool = AtomicBool::new(false);
616614

@@ -632,7 +630,7 @@ mod tests {
632630
THREAD_RAN.store(true, Ordering::Relaxed);
633631
std::thread::sleep(Duration::from_secs(2));
634632
unsafe {
635-
CloseHandle(real_handle as _);
633+
_ = CloseHandle(real_handle as _);
636634
}
637635
});
638636
std::thread::sleep(Duration::from_secs(1));

0 commit comments

Comments
 (0)