From 9096a890becd3e20b015c29c44debdd21a7c65c7 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Sun, 11 Dec 2022 21:59:58 +0900 Subject: [PATCH] Fix clippy warnings --- src/main.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 113b2cb..f7b2ac7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -61,8 +61,7 @@ fn main() { let mut stderr_handle = io::stderr().lock(); stderr_handle .write_all( - format!("WARNING: Invalid value passed to --netdev_width=..., ignoring...\n") - .as_bytes(), + "WARNING: Invalid value passed to --netdev_width=..., ignoring...\n".as_bytes(), ) .ok(); } @@ -78,10 +77,8 @@ fn main() { let mut stderr_handle = io::stderr().lock(); stderr_handle .write_all( - format!( - "WARNING: Invalid value passed to --netgraph_max_bytes=..., ignoring...\n" - ) - .as_bytes(), + "WARNING: Invalid value passed to --netgraph_max_bytes=..., ignoring...\n" + .as_bytes(), ) .ok(); }