Skip to content

Commit

Permalink
replace Iterator with IntoIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime2 committed Aug 8, 2019
1 parent c32839e commit f590c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub trait Peer<Id: PeerId> {
fn get_net_addr(&self) -> String;
}

pub trait PeerList<Id: PeerId, Error>: Iterator {
pub trait PeerList<Id: PeerId, Error>: IntoIterator {
fn add(&mut self, p: dyn Peer<Id>) -> std::result::Result<(), Error>;
fn get_peers_from_file(&mut self, json_peer_path: String) -> std::result::Result<(), Error>;
}

0 comments on commit f590c3d

Please sign in to comment.