Skip to content

Commit e63e699

Browse files
koutecarllerche
authored andcommitted
Derive FromPrimitive for SockType.
1 parent 8fb70be commit e63e699

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/socket/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub use self::multicast::{
4747
};
4848
pub use self::consts::*;
4949

50-
#[derive(Copy, PartialEq, Eq, Debug)]
50+
#[derive(Copy, PartialEq, Eq, Debug, FromPrimitive)]
5151
#[repr(i32)]
5252
pub enum SockType {
5353
Stream = consts::SOCK_STREAM,

0 commit comments

Comments
 (0)