From da01fee1f85f592d0b2b89f41bad274c11c5e11f Mon Sep 17 00:00:00 2001 From: Rohan Sircar Date: Sun, 2 May 2021 17:06:42 +0530 Subject: [PATCH] fix lint --- src/.cargo/config | 2 -- src/main.rs | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 src/.cargo/config diff --git a/src/.cargo/config b/src/.cargo/config deleted file mode 100644 index b42ac18..0000000 --- a/src/.cargo/config +++ /dev/null @@ -1,2 +0,0 @@ -[target.aarch64-unknown-linux-gnu] -linker = 'aarch64-linux-gnu-gcc' diff --git a/src/main.rs b/src/main.rs index 7091b09..0588360 100755 --- a/src/main.rs +++ b/src/main.rs @@ -104,8 +104,8 @@ async fn main() -> std::io::Result<()> { // user_service: &user_service, // }; - let addr = - std::env::var("BIND_ADDRESS").unwrap_or("127.0.0.1:7800".to_owned()); + let addr = std::env::var("BIND_ADDRESS") + .unwrap_or_else(|_| "127.0.0.1:7800".to_owned()); info!("Starting server at {}", addr); let private_key = rand::thread_rng().gen::<[u8; 32]>(); let app = move || {