From 4ffe259ad1cff547ddb09ab7cc2dd9996b2915f7 Mon Sep 17 00:00:00 2001 From: John Smith Date: Sat, 27 Nov 2021 21:38:24 -0500 Subject: [PATCH] lints --- .gitignore | 4 ++-- veilid-server/src/settings.rs | 37 +++++++++++++++++++++++++++++++---- 2 files changed, 35 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 0553e975..22282470 100644 --- a/.gitignore +++ b/.gitignore @@ -59,6 +59,6 @@ $RECYCLE.BIN/ ############################################################################### ### Rust -/target -/logs +target/ +logs/ diff --git a/veilid-server/src/settings.rs b/veilid-server/src/settings.rs index e1e93e51..fa370860 100644 --- a/veilid-server/src/settings.rs +++ b/veilid-server/src/settings.rs @@ -1,3 +1,4 @@ +#![allow(clippy::bool_assert_comparison)] use directories::*; use log::*; @@ -709,7 +710,14 @@ impl Settings { inner.core.network.protocol.udp.listen_address.name.clone(), )), "network.protocol.udp.public_address" => Ok(Box::new( - inner.core.network.protocol.udp.public_address.as_ref().map(|a| a.name.clone()), + inner + .core + .network + .protocol + .udp + .public_address + .as_ref() + .map(|a| a.name.clone()), )), "network.protocol.tcp.connect" => { Ok(Box::new(inner.core.network.protocol.tcp.connect)) @@ -724,7 +732,14 @@ impl Settings { inner.core.network.protocol.tcp.listen_address.name.clone(), )), "network.protocol.tcp.public_address" => Ok(Box::new( - inner.core.network.protocol.tcp.public_address.as_ref().map(|a| a.name.clone()), + inner + .core + .network + .protocol + .tcp + .public_address + .as_ref() + .map(|a| a.name.clone()), )), "network.protocol.ws.connect" => { Ok(Box::new(inner.core.network.protocol.ws.connect)) @@ -740,7 +755,14 @@ impl Settings { Ok(Box::new(inner.core.network.protocol.ws.path.clone())) } "network.protocol.ws.public_address" => Ok(Box::new( - inner.core.network.protocol.ws.public_address.as_ref().map(|a| a.name.clone()), + inner + .core + .network + .protocol + .ws + .public_address + .as_ref() + .map(|a| a.name.clone()), )), "network.protocol.wss.connect" => { Ok(Box::new(inner.core.network.protocol.wss.connect)) @@ -758,7 +780,14 @@ impl Settings { Ok(Box::new(inner.core.network.protocol.wss.path.clone())) } "network.protocol.wss.public_address" => Ok(Box::new( - inner.core.network.protocol.wss.public_address.as_ref().map(|a| a.name.clone()), + inner + .core + .network + .protocol + .wss + .public_address + .as_ref() + .map(|a| a.name.clone()), )), "network.leases.max_server_signal_leases" => { Ok(Box::new(inner.core.network.leases.max_server_signal_leases))