From 2a0fc3f2782655a22761f99c1764c91e772fbd10 Mon Sep 17 00:00:00 2001 From: Byron Hambly Date: Wed, 19 Oct 2022 14:53:28 +0200 Subject: [PATCH 1/3] chore: bump rust toolchain to 1.62 --- README.md | 2 +- rust-toolchain.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d696f7b5..9b4a0476 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Please have a look at the [contribution guidelines](./CONTRIBUTING.md). ## Rust Version Support Please note that only the latest stable Rust toolchain is supported. -All stable toolchains since 1.60 _should_ work. +All stable toolchains since 1.62 _should_ work. ## Contact diff --git a/rust-toolchain.toml b/rust-toolchain.toml index bcffd4a6..54776f48 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "1.60" +channel = "1.62" components = ["clippy"] targets = ["armv7-unknown-linux-gnueabihf"] From fb42ca13cc3a1fae36f9e99be07c3d9f63962103 Mon Sep 17 00:00:00 2001 From: Byron Hambly Date: Wed, 19 Oct 2022 14:55:39 +0200 Subject: [PATCH 2/3] chore: clippy fix --- swap/src/asb/event_loop.rs | 2 +- swap/src/protocol/alice/swap.rs | 6 +++--- swap/src/protocol/bob/swap.rs | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/swap/src/asb/event_loop.rs b/swap/src/asb/event_loop.rs index 9248a324..581bda2e 100644 --- a/swap/src/asb/event_loop.rs +++ b/swap/src/asb/event_loop.rs @@ -176,7 +176,7 @@ where let _ = responder.respond(wallet_snapshot); } SwarmEvent::Behaviour(OutEvent::SwapSetupCompleted{peer_id, swap_id, state3}) => { - let _ = self.handle_execution_setup_done(peer_id, swap_id, state3).await; + self.handle_execution_setup_done(peer_id, swap_id, state3).await; } SwarmEvent::Behaviour(OutEvent::SwapDeclined { peer, error }) => { tracing::warn!(%peer, "Ignoring spot price request: {}", error); diff --git a/swap/src/protocol/alice/swap.rs b/swap/src/protocol/alice/swap.rs index 77516d11..941e5a43 100644 --- a/swap/src/protocol/alice/swap.rs +++ b/swap/src/protocol/alice/swap.rs @@ -176,7 +176,7 @@ where } }, result = tx_lock_status.wait_until_confirmed_with(state3.cancel_timelock) => { - let _ = result?; + result?; AliceState::CancelTimelockExpired { monero_wallet_restore_blockheight, transfer_proof, @@ -196,7 +196,7 @@ where biased; // make sure the cancel timelock expiry future is polled first result = tx_lock_status.wait_until_confirmed_with(state3.cancel_timelock) => { - let _ = result?; + result?; AliceState::CancelTimelockExpired { monero_wallet_restore_blockheight, transfer_proof, @@ -326,7 +326,7 @@ where } } result = tx_cancel_status.wait_until_confirmed_with(state3.punish_timelock) => { - let _ = result?; + result?; AliceState::BtcPunishable { monero_wallet_restore_blockheight, diff --git a/swap/src/protocol/bob/swap.rs b/swap/src/protocol/bob/swap.rs index c82bf10e..66933a87 100644 --- a/swap/src/protocol/bob/swap.rs +++ b/swap/src/protocol/bob/swap.rs @@ -137,7 +137,7 @@ async fn next_state( } }, result = cancel_timelock_expires => { - let _ = result?; + result?; tracing::info!("Alice took too long to lock Monero, cancelling the swap"); let state4 = state3.cancel(); @@ -174,7 +174,7 @@ async fn next_state( } } result = tx_lock_status.wait_until_confirmed_with(state.cancel_timelock) => { - let _ = result?; + result?; BobState::CancelTimelockExpired(state.cancel()) } } @@ -198,7 +198,7 @@ async fn next_state( } }, result = tx_lock_status.wait_until_confirmed_with(state.cancel_timelock) => { - let _ = result?; + result?; BobState::CancelTimelockExpired(state.cancel()) } } @@ -215,7 +215,7 @@ async fn next_state( BobState::BtcRedeemed(state5?) }, result = tx_lock_status.wait_until_confirmed_with(state.cancel_timelock) => { - let _ = result?; + result?; BobState::CancelTimelockExpired(state.cancel()) } } From fb30872f8bc180af666bd42aa4ca6b17bfd99f5d Mon Sep 17 00:00:00 2001 From: Byron Hambly Date: Wed, 19 Oct 2022 15:04:04 +0200 Subject: [PATCH 3/3] build(deps): bump comfy-table to 6.1.1 --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9919e92c..49a878e4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -587,9 +587,9 @@ checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" [[package]] name = "comfy-table" -version = "6.1.0" +version = "6.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85914173c2f558d61613bfbbf1911f14e630895087a7ed2fafc0f5319e1536e7" +checksum = "7b3d16bb3da60be2f7c7acfc438f2ae6f3496897ce68c291d0509bb67b4e248e" dependencies = [ "crossterm", "strum",