Skip to content

Commit 1645a79

Browse files
committed
add hash trait to url search params
1 parent 6ca5fcc commit 1645a79

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/url_search_params.rs

+6
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,12 @@ impl UrlSearchParams {
213213
}
214214
}
215215

216+
impl core::hash::Hash for UrlSearchParams {
217+
fn hash<H: core::hash::Hasher>(&self, state: &mut H) {
218+
self.0.hash(state);
219+
}
220+
}
221+
216222
#[cfg(feature = "std")]
217223
impl core::str::FromStr for UrlSearchParams {
218224
type Err = ParseUrlError<Box<str>>;

0 commit comments

Comments
 (0)