Placate clippy (#698)

This commit is contained in:
Casey Rodarmor 2020-10-09 15:44:17 -07:00 committed by GitHub
parent fbda8dd2c7
commit 526badbd6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,7 @@
#![deny(clippy::all, clippy::pedantic, clippy::restriction)] #![deny(clippy::all, clippy::pedantic, clippy::restriction)]
#![allow( #![allow(
clippy::blanket_clippy_restriction_lints,
clippy::option_if_let_else,
clippy::comparison_chain, clippy::comparison_chain,
clippy::else_if_without_else, clippy::else_if_without_else,
clippy::enum_glob_use, clippy::enum_glob_use,
@ -18,6 +20,7 @@
clippy::needless_pass_by_value, clippy::needless_pass_by_value,
clippy::non_ascii_literal, clippy::non_ascii_literal,
clippy::panic, clippy::panic,
clippy::pattern_type_mismatch,
clippy::print_stdout, clippy::print_stdout,
clippy::shadow_unrelated, clippy::shadow_unrelated,
clippy::string_add, clippy::string_add,

View File

@ -18,10 +18,7 @@ impl Verbosity {
} }
pub(crate) fn quiet(self) -> bool { pub(crate) fn quiet(self) -> bool {
match self { matches!(self, Quiet)
Quiet => true,
_ => false,
}
} }
pub(crate) fn loquacious(self) -> bool { pub(crate) fn loquacious(self) -> bool {