From 29fc4d05a3c38c756c8dfa8461eabf08e9a3f645 Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Sun, 13 Aug 2017 19:20:14 +1000 Subject: [PATCH] fix warning --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index e92a6ce5a..3c76899f5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -295,7 +295,7 @@ impl RequestParams { /// These parameters are added as query parameters to request urls. pub fn url_param(mut self, key: &'static str, value: T) -> Self { if self.url_params.contains_key(key) { - let mut entry = self.url_params.get_mut(key).unwrap(); + let entry = self.url_params.get_mut(key).unwrap(); *entry = value.to_string(); } else { self.url_params.insert(key, value.to_string());