Skip to content

Commit 4dac9a6

Browse files
authored
Merge pull request #108 from dav1do/chore/107-peerid
chore: re-export libp2p_identity::PeerId
2 parents d2e5e37 + d4db76b commit 4dac9a6

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use std::{
2727
sync::Arc,
2828
};
2929

30-
use libp2p_identity::PeerId;
30+
pub use libp2p_identity::PeerId;
3131

3232
#[cfg(feature = "url")]
3333
pub use self::from_url::{from_url, from_url_lossy, FromUrlErr};

src/protocol.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
use crate::onion_addr::Onion3Addr;
2-
use crate::{Error, Result};
2+
use crate::{Error, PeerId, Result};
33
use arrayref::array_ref;
44
use byteorder::{BigEndian, ByteOrder, ReadBytesExt, WriteBytesExt};
55
use data_encoding::BASE32;
6-
use libp2p_identity::PeerId;
76
use std::{
87
borrow::Cow,
98
convert::From,

tests/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use data_encoding::HEXUPPER;
2-
use libp2p_identity::PeerId;
32
use multiaddr::*;
43
use multihash::Multihash;
54
use quickcheck::{Arbitrary, Gen, QuickCheck};
@@ -740,8 +739,7 @@ fn arbitrary_impl_for_all_proto_variants() {
740739
}
741740

742741
mod multiaddr_with_p2p {
743-
use libp2p_identity::PeerId;
744-
use multiaddr::Multiaddr;
742+
use multiaddr::{Multiaddr, PeerId};
745743

746744
fn test_multiaddr_with_p2p(
747745
multiaddr: &str,

0 commit comments

Comments
 (0)