diff options
-rw-r--r-- | src/features.rs | 8 | ||||
-rw-r--r-- | src/sched.rs | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/features.rs b/src/features.rs index 8f80a78c..cb31c914 100644 --- a/src/features.rs +++ b/src/features.rs @@ -24,10 +24,10 @@ mod os { *dst += (b - b'0') as usize; } - let mut curr = 0us; - let mut major = 0; - let mut minor = 0; - let mut patch = 0; + let mut curr: usize = 0; + let mut major: usize = 0; + let mut minor: usize = 0; + let mut patch: usize = 0; for b in u.release().bytes() { if curr >= 3 { diff --git a/src/sched.rs b/src/sched.rs index a25d859f..c8d719ed 100644 --- a/src/sched.rs +++ b/src/sched.rs @@ -32,8 +32,8 @@ pub static CLONE_IO: CloneFlags = 0x80000000; #[cfg(target_arch = "x86_64")] mod cpuset_attribs { use super::CpuMask; - pub const CPU_SETSIZE: usize = 1024us; - pub const CPU_MASK_BITS: usize = 64us; + pub const CPU_SETSIZE: usize = 1024; + pub const CPU_MASK_BITS: usize = 64; #[inline] pub fn set_cpu_mask_flag(cur: CpuMask, bit: usize) -> CpuMask { |