From 7b7d9540056f6378820caf955a0335268184d6b7 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sun, 30 May 2021 12:27:39 -0600 Subject: misc Clippy cleanup * Fix race conditions in the tests. Two tests were grabbing a mutex but immediately dropping it. Thank you, Clippy. * Remove vestigial Windows support. Remove some code added to support Windows in 2015. Nix is no longer intended to ever run on Windows. * Various other minor Clippy lints. --- src/time.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/time.rs') diff --git a/src/time.rs b/src/time.rs index e6c3f8de..f7da654a 100644 --- a/src/time.rs +++ b/src/time.rs @@ -185,9 +185,9 @@ impl ClockId { pub const CLOCK_VIRTUAL: ClockId = ClockId(libc::CLOCK_VIRTUAL); } -impl Into for ClockId { - fn into(self) -> clockid_t { - self.as_raw() +impl From for clockid_t { + fn from(clock_id: ClockId) -> Self { + clock_id.as_raw() } } -- cgit v1.2.3