Skip to content

Commit 93c9e43

Browse files
committed
Derive Hash for Url
This is a nice-to-have, especially when you'd like to use a `Url` as a key in a `HashMap`.
1 parent a618ef0 commit 93c9e43

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)