diff --git a/src/filters/token_router.rs b/src/filters/token_router.rs index 8def1b3c4..8efd2e1a9 100644 --- a/src/filters/token_router.rs +++ b/src/filters/token_router.rs @@ -310,7 +310,7 @@ mod tests { assert_write_no_change(&filter); } - fn new_ctx<'ctx>(dest: &'ctx mut Vec) -> ReadContext<'ctx> { + fn new_ctx(dest: &mut Vec) -> ReadContext<'_> { let endpoint1 = Endpoint::with_metadata( "127.0.0.1:80".parse().unwrap(), Metadata { diff --git a/src/net/cluster.rs b/src/net/cluster.rs index d723cd18f..92fdc8602 100644 --- a/src/net/cluster.rs +++ b/src/net/cluster.rs @@ -507,7 +507,7 @@ where pub fn addresses_for_token(&self, token: Token, addrs: &mut Vec) { if let Some(ma) = self.token_map.get(&token.0) { - addrs.extend(ma.value().into_iter().cloned()); + addrs.extend(ma.value().iter().cloned()); } } }