Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Nov 26, 2024
1 parent 19ea9cd commit 96a4ab7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/filters/token_router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ mod tests {
assert_write_no_change(&filter);
}

fn new_ctx<'ctx>(dest: &'ctx mut Vec<crate::net::EndpointAddress>) -> ReadContext<'ctx> {
fn new_ctx(dest: &mut Vec<crate::net::EndpointAddress>) -> ReadContext<'_> {
let endpoint1 = Endpoint::with_metadata(
"127.0.0.1:80".parse().unwrap(),
Metadata {
Expand Down
2 changes: 1 addition & 1 deletion src/net/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ where

pub fn addresses_for_token(&self, token: Token, addrs: &mut Vec<EndpointAddress>) {
if let Some(ma) = self.token_map.get(&token.0) {
addrs.extend(ma.value().into_iter().cloned());
addrs.extend(ma.value().iter().cloned());
}
}
}
Expand Down

0 comments on commit 96a4ab7

Please sign in to comment.