]> git.seodisparate.com - swaybar_info/commitdiff
Fix clippy warnings
authorStephen Seo <seo.disparate@gmail.com>
Sun, 11 Dec 2022 12:59:58 +0000 (21:59 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Sun, 11 Dec 2022 12:59:58 +0000 (21:59 +0900)
src/main.rs

index 113b2cbe01354d6e3b6e1f9ce3d86bbdd0deab4f..f7b2ac7a52b76f73c17df276069e70798260e441 100644 (file)
@@ -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();
             }