From 817e638e83d4cb10afe5bdc9315d922983c3efec Mon Sep 17 00:00:00 2001 From: Fina Wilke Date: Sat, 9 Dec 2023 19:55:06 +0100 Subject: [PATCH] test: Fix warnings --- src/dilation/manager.rs | 2 +- src/dilation/mod.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/dilation/manager.rs b/src/dilation/manager.rs index 84722502..40063fc0 100644 --- a/src/dilation/manager.rs +++ b/src/dilation/manager.rs @@ -263,7 +263,7 @@ mod test { assert_eq!(manager_fsm.current_state(), Some(State::Waiting)); - manager_fsm.process(ManagerEvent::Start, &side, &mut |cmd| { + manager_fsm.process(ManagerEvent::Start, &side, &mut |_cmd| { Err(WormholeError::Protocol("foo".into())) }); } diff --git a/src/dilation/mod.rs b/src/dilation/mod.rs index 998d4770..b2795b3e 100644 --- a/src/dilation/mod.rs +++ b/src/dilation/mod.rs @@ -228,8 +228,6 @@ mod test { #[async_std::test] async fn test_dilated_wormhole_new() { - let protocol = MockWormholeProtocol::default(); - let wc_ctx = MockWormholeConnectionDefault::new_context(); wc_ctx .expect()