diff options
author | Jan Bujak <j@exia.io> | 2015-03-07 13:31:26 +0100 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2015-03-14 20:39:00 -0700 |
commit | 8fb70becc379c26ed7a80ca7212bd90995f87208 (patch) | |
tree | 8736f3d53ceb6e59426d08f4d00fa3116fd10c8d /src/sys/socket | |
parent | c5bc33200c8eb3563784c0e18dc37060049247cd (diff) | |
download | nix-8fb70becc379c26ed7a80ca7212bd90995f87208.zip |
Derive FromPrimitive for AddressFamily.
Diffstat (limited to 'src/sys/socket')
-rw-r--r-- | src/sys/socket/addr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/socket/addr.rs b/src/sys/socket/addr.rs index 26d6349e..77a69941 100644 --- a/src/sys/socket/addr.rs +++ b/src/sys/socket/addr.rs @@ -15,7 +15,7 @@ use std::os::unix::OsStrExt; */ #[repr(i32)] -#[derive(Copy, Clone, PartialEq, Eq, Debug, Hash)] +#[derive(Copy, Clone, PartialEq, Eq, Debug, Hash, FromPrimitive)] pub enum AddressFamily { Unix = consts::AF_UNIX, Inet = consts::AF_INET, |