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 {