Skip to content

Commit 4a625f3

Browse files
committed
chore: re-export libp2p_identity::PeerId
1 parent 38d3a57 commit 4a625f3

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
@@ -26,7 +26,7 @@ use std::{
2626
sync::Arc,
2727
};
2828

29-
use libp2p_identity::PeerId;
29+
pub use libp2p_identity::PeerId;
3030

3131
#[cfg(feature = "url")]
3232
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};
@@ -663,8 +662,7 @@ fn arbitrary_impl_for_all_proto_variants() {
663662
}
664663

665664
mod multiaddr_with_p2p {
666-
use libp2p_identity::PeerId;
667-
use multiaddr::Multiaddr;
665+
use multiaddr::{Multiaddr, PeerId};
668666

669667
fn test_multiaddr_with_p2p(
670668
multiaddr: &str,

0 commit comments

Comments
 (0)