Skip to content

Commit 2308388

Browse files
varun-doshirklaehn
andauthored
feat(iroh-base): derive Hash for NodeAddr (#3428)
## Description <!-- A summary of what this pull request achieves and a rough list of changes. --> Fixes #3425 Derives `Hash` for `NodeAddr` ## Change checklist <!-- Remove any that are not relevant. --> - [x] Self-review. Co-authored-by: Rüdiger Klaehn <[email protected]>
1 parent 59d1432 commit 2308388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iroh-base/src/node_addr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use crate::{NodeId, PublicKey, RelayUrl};
3636
/// [discovery]: https://docs.rs/iroh/*/iroh/index.html#node-discovery
3737
/// [home relay]: https://docs.rs/iroh/*/iroh/relay/index.html
3838
/// [Relay server]: https://docs.rs/iroh/*/iroh/index.html#relay-servers
39-
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
39+
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord, Hash)]
4040
pub struct NodeAddr {
4141
/// The node's identifier.
4242
pub node_id: NodeId,

0 commit comments

Comments
 (0)