Implement Hash for SocketHandle

Closes: #320
Approved by: whitequark
v0.7.x
Pierre Krieger 2019-12-22 16:34:35 +01:00 committed by Homu
parent d01e23e396
commit 9c5f77dd7e
1 changed files with 1 additions and 1 deletions

View File

@ -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 {