Fix new Clippy lint
This commit is contained in:
parent
44619fd24d
commit
59e0509a58
1 changed files with 1 additions and 1 deletions
|
|
@ -107,7 +107,7 @@ fn collect_files(
|
||||||
let mut in_out_pairs = Vec::new();
|
let mut in_out_pairs = Vec::new();
|
||||||
let allow_stdin = top_level && files.len() == 1;
|
let allow_stdin = top_level && files.len() == 1;
|
||||||
for input in files {
|
for input in files {
|
||||||
let using_stdin = allow_stdin && input.to_str().map_or(false, |p| p == "-");
|
let using_stdin = allow_stdin && input.to_str() == Some("-");
|
||||||
if !using_stdin && input.is_dir() {
|
if !using_stdin && input.is_dir() {
|
||||||
if recursive {
|
if recursive {
|
||||||
match input.read_dir() {
|
match input.read_dir() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue