diff options
-rw-r--r-- | src/sched.rs | 2 | ||||
-rw-r--r-- | src/sys/epoll.rs | 4 | ||||
-rw-r--r-- | src/sys/utsname.rs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/sched.rs b/src/sched.rs index 1d269f98..c5903027 100644 --- a/src/sched.rs +++ b/src/sched.rs @@ -69,7 +69,7 @@ pub type CpuMask = c_ulong; // Structure representing the CPU set to apply #[repr(C)] -#[deriving(Copy)] +#[derive(Copy)] pub struct CpuSet { cpu_mask: [CpuMask; cpuset_attribs::CPU_SETSIZE/cpuset_attribs::CPU_MASK_BITS] } diff --git a/src/sys/epoll.rs b/src/sys/epoll.rs index 515f3b23..83bc2aae 100644 --- a/src/sys/epoll.rs +++ b/src/sys/epoll.rs @@ -69,7 +69,7 @@ impl fmt::Show for EpollEventKind { } } -#[deriving(Copy)] +#[derive(Copy)] #[repr(C)] pub enum EpollOp { EpollCtlAdd = 1, @@ -77,7 +77,7 @@ pub enum EpollOp { EpollCtlMod = 3 } -#[deriving(Copy)] +#[derive(Copy)] #[repr(C, packed)] pub struct EpollEvent { pub events: EpollEventKind, diff --git a/src/sys/utsname.rs b/src/sys/utsname.rs index 9bdd7d32..ce76a3be 100644 --- a/src/sys/utsname.rs +++ b/src/sys/utsname.rs @@ -15,7 +15,7 @@ mod ffi { const UTSNAME_LEN: uint = 65; #[repr(C)] -#[deriving(Copy)] +#[derive(Copy)] pub struct UtsName { sysname: [c_char; UTSNAME_LEN], nodename: [c_char; UTSNAME_LEN], |