From 1645a79e398e7c8c612616ef4b1caffd2182045f Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Sun, 1 Dec 2024 20:08:07 -0500 Subject: [PATCH] add hash trait to url search params --- src/url_search_params.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/url_search_params.rs b/src/url_search_params.rs index 6ff02e2..ea3fe5f 100644 --- a/src/url_search_params.rs +++ b/src/url_search_params.rs @@ -213,6 +213,12 @@ impl UrlSearchParams { } } +impl core::hash::Hash for UrlSearchParams { + fn hash(&self, state: &mut H) { + self.0.hash(state); + } +} + #[cfg(feature = "std")] impl core::str::FromStr for UrlSearchParams { type Err = ParseUrlError>;