Skip to content

Commit

Permalink
Merge pull request #3548 from cakebaker/suppress_clippy_error
Browse files Browse the repository at this point in the history
df/uniq: suppress lint errors
  • Loading branch information
sylvestre authored May 20, 2022
2 parents c517096 + af5ef55 commit 9db0a87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/uu/df/src/df.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down
3 changes: 3 additions & 0 deletions src/uu/uniq/src/uniq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 9db0a87

Please sign in to comment.