1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Merge pull request #3548 from cakebaker/suppress_clippy_error

df/uniq: suppress lint errors
This commit is contained in:
Sylvestre Ledru 2022-05-20 19:41:01 +02:00 committed by GitHub
commit 9db0a877aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -148,6 +148,7 @@ impl fmt::Display for OptionsError {
"option --output: field {} used more than once", "option --output: field {} used more than once",
s.quote() s.quote()
), ),
#[allow(clippy::print_in_format_impl)]
Self::FilesystemTypeBothSelectedAndExcluded(types) => { Self::FilesystemTypeBothSelectedAndExcluded(types) => {
for t in types { for t in types {
eprintln!( eprintln!(

View file

@ -5,6 +5,9 @@
// * For the full copyright and license information, please view the LICENSE // * For the full copyright and license information, please view the LICENSE
// * file that was distributed with this source code. // * 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 clap::{crate_version, Arg, ArgMatches, Command};
use std::fs::File; use std::fs::File;
use std::io::{self, stdin, stdout, BufRead, BufReader, BufWriter, Read, Write}; use std::io::{self, stdin, stdout, BufRead, BufReader, BufWriter, Read, Write};