From eb97bc51071d339003c265b1963834ee95204e26 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 4 Apr 2021 16:32:51 +0200 Subject: 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 --- src/node_id.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { } -- cgit v1.2.3