summaryrefslogtreecommitdiffstats
path: root/src/args.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2017-11-19 17:26:06 +0100
committerAndrew Gallant <jamslam@gmail.com>2017-11-22 10:50:28 -0500
commit7ae1f373c2b899c7db5f8106dec4d7423b1d8364 (patch)
tree2106b970d1fa6c20da9f807ed3c1f9dbf5fddb82 /src/args.rs
parent4d34132365a00219f0c0baca9e05b119621dbd79 (diff)
clippy: fix warnings about useless format call and remove references that would be immediately dereferenced by the compiler.
Diffstat (limited to 'src/args.rs')
-rw-r--r--src/args.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/args.rs b/src/args.rs
index 5d2e6880..82f7ee66 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -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")