clippy: fix warnings about useless format call and remove references that would be immediately dereferenced by the compiler.

This commit is contained in:
Matthias Krüger
2017-11-19 17:26:06 +01:00
committed by Andrew Gallant
parent 4d34132365
commit 7ae1f373c2
3 changed files with 4 additions and 4 deletions

View File

@@ -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")