summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-04-04 16:32:51 +0200
committerMatthias Beyer <mail@beyermatthias.de>2021-04-04 16:32:51 +0200
commiteb97bc51071d339003c265b1963834ee95204e26 (patch)
treec45f6e04828f93be019d317e9d83546d44c42eab
parent412d3e81d757038bd5d8bb15e4f4ceba9f5acd6e (diff)
Remove NodeId:: std::hash::Hash
Because this requirement is not needed. Also add a comment that NodeId should be cheap to clone. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--src/node_id.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/node_id.rs b/src/node_id.rs
index 0ee7b97..6211e19 100644
--- a/src/node_id.rs
+++ b/src/node_id.rs
@@ -5,5 +5,7 @@
//
/// A unique identifier for a `Node`
-pub trait NodeId: Clone + Eq + PartialEq + std::hash::Hash {
+///
+/// The `NodeId` should be cheap to clone (for example a UUID or some form of a hash value).
+pub trait NodeId: Clone + Eq + PartialEq {
}