uutils / findutils

Rust implementation of findutils
MIT License
309 stars 38 forks source link

Fix clippy warning `unnecessary `!=` operation` #225

Closed sylvestre closed 1 year ago

sylvestre commented 1 year ago
warning: unnecessary `!=` operation
  --> src/testing/commandline/main.rs:81:26
   |
81 |           destination_dir: if args[1] != "-" {
   |  __________________________^
82 | |             Some(args[1].clone())
83 | |         } else {
84 | |             None
85 | |         },
   | |_________^
   |
   = help: change to `==` and swap the blocks of the `if`/`else`
sylvestre commented 1 year ago

thanks