From 8f9d612af203b78b1e21d1be65a16c05ac047ea0 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 25 May 2021 15:31:20 +1000 Subject: [PATCH] Change to stable Rust 1.52 Fix clippy warnings that are new in this version. --- rust-toolchain.toml | 2 +- swap/src/bin/asb.rs | 2 +- swap/src/protocol/alice/state.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 1985a9e4..242a73de 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "nightly-2021-01-31" +channel = "1.52" components = ["clippy"] targets = ["armv7-unknown-linux-gnueabihf"] diff --git a/swap/src/bin/asb.rs b/swap/src/bin/asb.rs index afef29f3..1097fb69 100644 --- a/swap/src/bin/asb.rs +++ b/swap/src/bin/asb.rs @@ -353,7 +353,7 @@ async fn register_tor_services( } }) }) - .filter_map(|details| details) + .flatten() .collect::>(); let key = seed.derive_torv3_key(); diff --git a/swap/src/protocol/alice/state.rs b/swap/src/protocol/alice/state.rs index 80f12a0a..42d605d8 100644 --- a/swap/src/protocol/alice/state.rs +++ b/swap/src/protocol/alice/state.rs @@ -308,8 +308,8 @@ impl State2 { let tx_cancel_sig = self.a.sign(tx_cancel.digest()); Message3 { - tx_refund_encsig, tx_cancel_sig, + tx_refund_encsig, } }