radicle: Remove unnecessary clone()
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
29a95fb1a6
commit
23b9d30639
|
|
@ -496,7 +496,7 @@ impl Config {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn peers(&self) -> impl Iterator<Item = NodeId> + '_ {
|
pub fn peers(&self) -> impl Iterator<Item = NodeId> + '_ {
|
||||||
self.connect.iter().cloned().map(|p| p.id)
|
self.connect.iter().map(|p| p.0.id)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_persistent(&self, id: &NodeId) -> bool {
|
pub fn is_persistent(&self, id: &NodeId) -> bool {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue