From 867962cc3cd52b30ad66104214439277121d3765 Mon Sep 17 00:00:00 2001 From: Zomatree Date: Tue, 17 Aug 2021 17:35:05 +0100 Subject: [PATCH] reword comment --- src/notifications/websocket.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notifications/websocket.rs b/src/notifications/websocket.rs index a63ea6d0..66322407 100644 --- a/src/notifications/websocket.rs +++ b/src/notifications/websocket.rs @@ -62,7 +62,7 @@ impl server::Callback for HeaderCallback { fn on_request(self, request: &server::Request, response: server::Response) -> Result { // we dont get some of the data sometimes so im generating a fake url with the only data we actually need let url = format!("ws://example.com?{}", request.uri().query().unwrap_or("?format=json")); - let mut query: HashMap<_, _> = url.parse::().unwrap().query_pairs().into_owned().collect(); // should be safe to use unwrap here as it was just a Uri + let mut query: HashMap<_, _> = url.parse::().unwrap().query_pairs().into_owned().collect(); // should be safe to use unwrap here as we just made the url ourself let format_query: Option = query.remove("format"); let format = match format_query.as_deref().unwrap_or("json") {