Skip to content
Snippets Groups Projects
Commit 3d1a96e8 authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon: Committed by Georgy Moshkin
Browse files

refactor: remove redundant iteration

parent 94dd3724
No related branches found
No related tags found
1 merge request!149Refactor/minor fixes
Pipeline #7061 passed
......@@ -138,11 +138,11 @@ impl Topology {
}
pub fn diff(&self) -> Vec<Peer> {
self.diff.clone().into_values().collect()
self.diff.values().cloned().collect()
}
pub fn to_replace(&self) -> Vec<(RaftId, Peer)> {
self.to_replace.clone().into_values().collect()
self.to_replace.values().cloned().collect()
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment