Skip to content

Commit

Permalink
[update] Add clippy and compact if check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinyzenith committed Apr 10, 2022
1 parent 5d042c6 commit f532337
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ uninstall:
check:
@cargo fmt
@cargo check
@cargo clippy

clean:
@cargo clean
Expand Down
3 changes: 1 addition & 2 deletions src/wayshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ fn main() -> Result<(), Box<dyn Error>> {
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 {
Expand Down

0 comments on commit f532337

Please sign in to comment.