From 2f80e1ac6a926575455810678bf5cef5a56e43ca Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Sun, 22 Dec 2019 16:34:35 +0100 Subject: [PATCH] Implement Hash for SocketHandle Closes: #320 Approved by: whitequark --- src/socket/set.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {