Skip to content

Commit

Permalink
Implement Hash for SocketHandle
Browse files Browse the repository at this point in the history
Closes: #320
Approved by: whitequark
  • Loading branch information
tomaka authored and Homu committed Dec 22, 2019
1 parent 63cfe28 commit 2f80e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/socket/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2f80e1a

Please sign in to comment.