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/sys/epoll.rs | 4 ++-- src/sys/utsname.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sys') 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