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)]
#![allow(
clippy::blanket_clippy_restriction_lints,
clippy::option_if_let_else,
clippy::comparison_chain,
clippy::else_if_without_else,
clippy::enum_glob_use,
@ -18,6 +20,7 @@
clippy::needless_pass_by_value,
clippy::non_ascii_literal,
clippy::panic,
clippy::pattern_type_mismatch,
clippy::print_stdout,
clippy::shadow_unrelated,
clippy::string_add,

View File

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