From f9db3a9101ff9fcc680e66e20ea29496832bcdbd Mon Sep 17 00:00:00 2001 From: Ian Chamberlain Date: Wed, 26 Jan 2022 23:24:08 -0500 Subject: [PATCH] Update src/lib.rs Co-authored-by: Mark Drobnak --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index ccd64e8..7783976 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -58,7 +58,7 @@ unsafe extern "C" fn clock_gettime( retval = libc::gettimeofday(tv.as_mut_ptr(), ptr::null_mut()); if retval == 0 { let tv = tv.assume_init(); - (*tp).tv_nsec = (tv.tv_usec * 1000).into(); + (*tp).tv_nsec = tv.tv_usec * 1000; (*tp).tv_sec = tv.tv_sec; } }