Skip to content

Commit

Permalink
define iter() the other way
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime2 committed Aug 9, 2019
1 parent 9e5ce6e commit 114b2fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ pub trait PeerList<Id: PeerId, Error> {
type P: Peer<Id>;
fn add(&mut self, peer: Self::P) -> std::result::Result<(), Error>;
fn get_peers_from_file(&mut self, json_peer_path: String) -> std::result::Result<(), Error>;
fn iter<'a>(&'a self) -> dyn Iterator<Item = &'a Self::P>;
//fn iter<'a>(&'a self) -> Self::IterType;
}

0 comments on commit 114b2fb

Please sign in to comment.