Skip to content

Commit

Permalink
Merge pull request #46 from elastic-rs/fix/build
Browse files Browse the repository at this point in the history
Fix build warning
  • Loading branch information
KodrAus authored Aug 13, 2017
2 parents ab0b20a + 29fc4d0 commit d2fdabb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ impl RequestParams {
/// These parameters are added as query parameters to request urls.
pub fn url_param<T: ToString>(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());
Expand Down

0 comments on commit d2fdabb

Please sign in to comment.