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 || {