diff options
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/socket/addr.rs | 2 | ||||
-rw-r--r-- | src/sys/socket/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/socket/addr.rs b/src/sys/socket/addr.rs index 1ae5a9c3..91052c77 100644 --- a/src/sys/socket/addr.rs +++ b/src/sys/socket/addr.rs @@ -16,7 +16,7 @@ use std::os::unix::ffi::OsStrExt; */ #[repr(i32)] -#[derive(Copy, Clone, PartialEq, Eq, Debug, Hash, FromPrimitive)] +#[derive(Copy, Clone, PartialEq, Eq, Debug, Hash)] pub enum AddressFamily { Unix = consts::AF_UNIX, Inet = consts::AF_INET, diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs index 0db5bc29..5eaf87c7 100644 --- a/src/sys/socket/mod.rs +++ b/src/sys/socket/mod.rs @@ -56,7 +56,7 @@ pub struct sockaddr_storage { pub __ss_pad2: [u8; 120], } -#[derive(Clone, Copy, PartialEq, Eq, Debug, FromPrimitive)] +#[derive(Clone, Copy, PartialEq, Eq, Debug)] #[repr(i32)] pub enum SockType { Stream = consts::SOCK_STREAM, |