From: Stephen Seo Date: Sun, 11 Dec 2022 12:59:58 +0000 (+0900) Subject: Fix clippy warnings X-Git-Tag: 0.1.7~3 X-Git-Url: https://git.seodisparate.com/stephenseo/static/git-favicon.png?a=commitdiff_plain;h=9096a890becd3e20b015c29c44debdd21a7c65c7;p=swaybar_info Fix clippy warnings --- 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(); }