Skip to content

Commit

Permalink
change (&HashSet)::into_iter to equivalent iter
Browse files Browse the repository at this point in the history
  • Loading branch information
b-zee committed Oct 24, 2023
1 parent 0c4b667 commit f9db317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocols/request-response/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ where
addresses.extend(connections.iter().filter_map(|c| c.remote_address.clone()))
}
if let Some(more) = self.addresses.get(&peer) {
addresses.extend(more.into_iter().cloned());
addresses.extend(more.iter().cloned());
}

Ok(addresses)
Expand Down

0 comments on commit f9db317

Please sign in to comment.