From f532337acb50555fa5a152dd1a7d74fc3f466337 Mon Sep 17 00:00:00 2001 From: Shinyzenith Date: Sun, 10 Apr 2022 20:03:23 +0530 Subject: [PATCH] [update] Add clippy and compact if check. --- Makefile | 1 + src/wayshot.rs | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fb7359d5..47b25a49 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,7 @@ uninstall: check: @cargo fmt @cargo check + @cargo clippy clean: @cargo clean diff --git a/src/wayshot.rs b/src/wayshot.rs index 8fc15dad..15e9cecc 100644 --- a/src/wayshot.rs +++ b/src/wayshot.rs @@ -139,8 +139,7 @@ fn main() -> Result<(), Box> { for i in 0..image_buffers.len() { image::imageops::overlay(&mut composited_frame, &image_buffers[i], 0, 0); } - if args.is_present("stdout") { - } else { + if !(args.is_present("stdout")) { composited_frame.save_with_format( path, match extension {