Skip to content

Commit d0a6509

Browse files
authored
chore(libp2p): add #[allow(allow_deadcode)]
Pull-Request: #6132.
1 parent e29dad6 commit d0a6509

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

libp2p/src/builder/phase.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use super::{
3535
select_muxer::SelectMuxerUpgrade, select_security::SelectSecurityUpgrade, SwarmBuilder,
3636
};
3737

38-
#[allow(unreachable_pub)]
38+
#[allow(unreachable_pub, dead_code)]
3939
pub trait IntoSecurityUpgrade<C> {
4040
type Upgrade;
4141
type Error;
@@ -77,7 +77,7 @@ where
7777
}
7878
}
7979

80-
#[allow(unreachable_pub)]
80+
#[allow(unreachable_pub, dead_code)]
8181
pub trait IntoMultiplexerUpgrade<C> {
8282
type Upgrade;
8383

libp2p/src/builder/select_muxer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ use libp2p_core::{
3434
pub struct SelectMuxerUpgrade<A, B>(A, B);
3535

3636
impl<A, B> SelectMuxerUpgrade<A, B> {
37+
#[allow(dead_code)]
3738
pub fn new(a: A, b: B) -> Self {
3839
SelectMuxerUpgrade(a, b)
3940
}

libp2p/src/builder/select_security.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ impl<A, B> SelectSecurityUpgrade<A, B> {
4242
/// Combines two upgrades into an `SelectUpgrade`.
4343
///
4444
/// The protocols supported by the first element have a higher priority.
45+
#[allow(dead_code)]
4546
pub fn new(a: A, b: B) -> Self {
4647
SelectSecurityUpgrade(a, b)
4748
}

0 commit comments

Comments
 (0)