Skip to content

Commit

Permalink
remove type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
oblique committed Nov 9, 2023
1 parent d8848b6 commit a48da3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libp2p/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ mod tests {
fn quic_config() {
let _ = SwarmBuilder::with_new_identity()
.with_tokio()
.with_quic_config(|config: libp2p_quic::Config| config)
.with_quic_config(|config| config)
.with_behaviour(|_| libp2p_swarm::dummy::Behaviour)
.unwrap()
.build();
Expand All @@ -157,7 +157,7 @@ mod tests {
fn async_std_quic_config() {
let _ = SwarmBuilder::with_new_identity()
.with_async_std()
.with_quic_config(|config: libp2p_quic::Config| config)
.with_quic_config(|config| config)
.with_behaviour(|_| libp2p_swarm::dummy::Behaviour)
.unwrap()
.build();
Expand Down Expand Up @@ -273,7 +273,7 @@ mod tests {
libp2p_yamux::Config::default,
)
.unwrap()
.with_quic_config(|config: libp2p_quic::Config| config)
.with_quic_config(|config| config)
.with_behaviour(|_| libp2p_swarm::dummy::Behaviour)
.unwrap()
.build();
Expand All @@ -297,7 +297,7 @@ mod tests {
libp2p_yamux::Config::default,
)
.unwrap()
.with_quic_config(|config: libp2p_quic::Config| config)
.with_quic_config(|config| config)
.with_behaviour(|_| libp2p_swarm::dummy::Behaviour)
.unwrap()
.build();
Expand Down

0 comments on commit a48da3c

Please sign in to comment.