Skip to content

Commit 30be5fd

Browse files
committed
Merge rust-bitcoin#550: Derive Hash for Url
93c9e43 Derive `Hash` for `Url` (Elias Rohrer) Pull request description: This is a nice-to-have, especially when you'd like to use a `Url` as a key in a `HashMap`. ACKs for top commit: tcharding: ACK 93c9e43 Tree-SHA512: 46945cc5c3dde1996393a882aa6d38a4d19e899ac29100d14768a7d64f578ffb4afe9b5f95941cea714c98f37c51d2a382f25cdd4bffb15aa13af91b586f9fb8
2 parents a618ef0 + 93c9e43 commit 30be5fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bitreq/src/url.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl std::error::Error for ParseError {}
5959
///
6060
/// **Note:** This type currently only supports encoded URLs. IDNs or non-ASCII URLs must be
6161
/// properly punycoded/%-encoded prior to parsing.
62-
#[derive(Debug, Clone, PartialEq, Eq)]
62+
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
6363
pub struct Url {
6464
/// The full serialized URL string.
6565
serialization: String,

0 commit comments

Comments
 (0)