From a1351e5461d51537adc92c420473aa713c1c4b2a Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 28 Oct 2020 10:11:04 +1100 Subject: [PATCH] Do not declare 'port' variable --- swap/src/alice.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swap/src/alice.rs b/swap/src/alice.rs index 50235851..ca8a45e3 100644 --- a/swap/src/alice.rs +++ b/swap/src/alice.rs @@ -127,7 +127,7 @@ fn new_swarm(listen: Multiaddr, port: Option) -> Result { { transport = match port { None => transport::build(local_key_pair)?, - Some(port) => anyhow::bail!("local port should not be provided for non-tor usage"), + Some(_) => anyhow::bail!("local port should not be provided for non-tor usage"), }; }