Skip to content

Commit

Permalink
make TestPeer, TestPeerList and common_test() public
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime2 committed Aug 13, 2019
1 parent 9570788 commit 1c1a034
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/generic_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl From<usize> for Data {
}
}

struct TestPeer<Id> {
pub struct TestPeer<Id> {
pub id: Id,
pub net_addr: String,
}
Expand All @@ -44,7 +44,7 @@ impl Peer<Id> for TestPeer<Id> {
}
}

struct TestPeerList<Id> {
pub struct TestPeerList<Id> {
peers: Vec<TestPeer<Id>>,
}

Expand Down Expand Up @@ -87,7 +87,7 @@ impl PeerList<Id, Error> for TestPeerList<Id> {
}
}

fn common_test<
pub fn common_test<
C: TransportConfiguration<Data> + Clone,
T: Transport<Id, Data, Error, TestPeerList<Id>, Configuration = C>,
>(
Expand Down

0 comments on commit 1c1a034

Please sign in to comment.