diff --git a/src/socket/set.rs b/src/socket/set.rs index 9c81aee86..b41a5383c 100644 --- a/src/socket/set.rs +++ b/src/socket/set.rs @@ -16,7 +16,7 @@ pub struct Item<'a, 'b: 'a> { } /// A handle, identifying a socket in a set. -#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Default)] +#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Default, Hash)] pub struct Handle(usize); impl fmt::Display for Handle {