From af5ef5585f7580ffa1991b6ff25926635b3f133b Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Fri, 20 May 2022 15:10:16 +0200 Subject: [PATCH] df/uniq: suppress lint errors --- src/uu/df/src/df.rs | 1 + src/uu/uniq/src/uniq.rs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/uu/df/src/df.rs b/src/uu/df/src/df.rs index 793138f7dd2..7c95e693808 100644 --- a/src/uu/df/src/df.rs +++ b/src/uu/df/src/df.rs @@ -148,6 +148,7 @@ impl fmt::Display for OptionsError { "option --output: field {} used more than once", s.quote() ), + #[allow(clippy::print_in_format_impl)] Self::FilesystemTypeBothSelectedAndExcluded(types) => { for t in types { eprintln!( diff --git a/src/uu/uniq/src/uniq.rs b/src/uu/uniq/src/uniq.rs index e71c21303da..d947166fecb 100644 --- a/src/uu/uniq/src/uniq.rs +++ b/src/uu/uniq/src/uniq.rs @@ -5,6 +5,9 @@ // * For the full copyright and license information, please view the LICENSE // * file that was distributed with this source code. +// TODO remove this when https://github.com/rust-lang/rust-clippy/issues/6902 is fixed +#![allow(clippy::use_self)] + use clap::{crate_version, Arg, ArgMatches, Command}; use std::fs::File; use std::io::{self, stdin, stdout, BufRead, BufReader, BufWriter, Read, Write};