clippy: fix warnings about useless format call and remove references that would be immediately dereferenced by the compiler.
This commit is contained in:
committed by
Andrew Gallant
parent
4d34132365
commit
7ae1f373c2
@@ -601,7 +601,7 @@ impl<'a> ArgMatches<'a> {
|
||||
if self.is_present("no-line-number") || self.is_present("count") {
|
||||
false
|
||||
} else {
|
||||
let only_stdin = paths == &[Path::new("-")];
|
||||
let only_stdin = paths == [Path::new("-")];
|
||||
(atty::is(atty::Stream::Stdout) && !only_stdin)
|
||||
|| self.is_present("line-number")
|
||||
|| self.is_present("column")
|
||||
|
||||
Reference in New Issue
Block a user