From 76cbb420ca08f4a22fab766c7ba09921a252e4df Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Sun, 4 Jan 2015 12:34:15 -0800 Subject: Fix a few remaining deprecation notices --- src/sched.rs | 2 +- src/sys/epoll.rs | 4 ++-- src/sys/utsname.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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], -- cgit v1.2.3