Skip to content

Commit

Permalink
Fix clippy warning on the nightly channel
Browse files Browse the repository at this point in the history
  • Loading branch information
sile committed Apr 5, 2022
1 parent a246a10 commit 8dc0448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/carrier.rs
Expand Up @@ -41,15 +41,15 @@ impl<S: BuildHasher> TextMap for HashMap<String, String, S> {
self.insert(key.to_owned(), value.to_owned());
}
fn get(&self, key: &str) -> Option<&str> {
self.get(key).map(|v| v.as_ref())
HashMap::get(self, key).map(|v| v.as_ref())
}
}
impl TextMap for BTreeMap<String, String> {
fn set(&mut self, key: &str, value: &str) {
self.insert(key.to_owned(), value.to_owned());
}
fn get(&self, key: &str) -> Option<&str> {
self.get(key).map(|v| v.as_ref())
BTreeMap::get(self, key).map(|v| v.as_ref())
}
}

Expand Down

0 comments on commit 8dc0448

Please sign in to comment.