Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Sep 3, 2023
1 parent 848f360 commit 14954f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions interop-tests/src/arch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ pub(crate) mod native {
}

fn expect_muxer_yamux() -> Result<()> {
Ok(match from_env("muxer")? {
match from_env("muxer")? {
Muxer::Yamux => (),
Muxer::Mplex => {
bail!("Only Yamux is supported, not Mplex")
}
})
};
Ok(())
}

pub(crate) async fn build_swarm<B: NetworkBehaviour>(
Expand Down
2 changes: 1 addition & 1 deletion libp2p/src/builder/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.

use libp2p_core::upgrade::{InboundUpgrade, OutboundUpgrade, UpgradeInfo};
use futures::future::{self, TryFutureExt};
use libp2p_core::upgrade::{InboundUpgrade, OutboundUpgrade, UpgradeInfo};

/// Upgrade applying a function to an inner upgrade.
#[derive(Debug, Clone)]
Expand Down

0 comments on commit 14954f0

Please sign in to comment.