Do not declare 'port' variable

This commit is contained in:
Tobin C. Harding 2020-10-28 10:11:04 +11:00
parent 464b699426
commit a1351e5461

View File

@ -127,7 +127,7 @@ fn new_swarm(listen: Multiaddr, port: Option<u16>) -> Result<Swarm> {
{
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"),
};
}