Placate clippy (#698)
This commit is contained in:
parent
fbda8dd2c7
commit
526badbd6f
@ -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,
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user