From c63f89cb47405329260c36ec905e7cfa92d239a0 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Mon, 11 Jul 2016 21:28:06 +0300 Subject: Ignore the overflow for constants Force using the constants even on x86 where they do not fit into isize (c_int) --- src/sys/reboot.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/sys/reboot.rs b/src/sys/reboot.rs index eedbf5ae..10abef91 100644 --- a/src/sys/reboot.rs +++ b/src/sys/reboot.rs @@ -3,6 +3,7 @@ use libc::c_int; use void::Void; use std::mem::drop; +#[allow(overflowing_literals)] #[derive(Copy, Clone, Debug, Eq, PartialEq)] pub enum RebootMode { Halt = 0xcdef0123, -- cgit v1.2.3