diff options
author | Eduardo Broto <ebroto@tutanota.com> | 2019-12-06 23:27:43 +0100 |
---|---|---|
committer | Eduardo Broto <ebroto@tutanota.com> | 2019-12-06 23:27:43 +0100 |
commit | f449555498c7fb92fe6d2bdb5fe3c833cbb0be7d (patch) | |
tree | 9854d0e2666ed1f7baa607637ac38d864890480e /src/tests/fakes | |
parent | 2cd4ef5f693b4ff108a7b19ebdce57a52e75b7d6 (diff) |
fix(dns): use more idiomatic cloned in FakeResolver
Diffstat (limited to 'src/tests/fakes')
-rw-r--r-- | src/tests/fakes/fake_input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/fakes/fake_input.rs b/src/tests/fakes/fake_input.rs index 454924e..889e708 100644 --- a/src/tests/fakes/fake_input.rs +++ b/src/tests/fakes/fake_input.rs @@ -162,7 +162,7 @@ struct FakeResolver(HashMap<IpAddr, String>); impl Lookup for FakeResolver { async fn lookup(&self, ip: Ipv4Addr) -> Option<String> { let ip = IpAddr::from(ip); - self.0.get(&ip).map(|host| host.clone()) + self.0.get(&ip).cloned() } } |