summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2015-01-04 12:34:15 -0800
committerCarl Lerche <me@carllerche.com>2015-01-04 12:34:15 -0800
commit76cbb420ca08f4a22fab766c7ba09921a252e4df (patch)
tree6be03b0da6e89e3b11d04e3bdc29d651419e5b73 /src
parent07d528d93887331892e2105e18cad9ffb24d5d94 (diff)
downloadnix-76cbb420ca08f4a22fab766c7ba09921a252e4df.zip
Fix a few remaining deprecation notices
Diffstat (limited to 'src')
-rw-r--r--src/sched.rs2
-rw-r--r--src/sys/epoll.rs4
-rw-r--r--src/sys/utsname.rs2
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],