diff options
| author | kraktus <kraktus@users.noreply.github.com> | 2022-10-23 16:03:05 +0200 |
|---|---|---|
| committer | kraktus <kraktus@users.noreply.github.com> | 2022-11-07 19:49:43 +0100 |
| commit | d9b940e2c36eee3172c0f41f570de9e2d8ed95fd (patch) | |
| tree | a2ee0751d2d79f699ab6c069e5d4a0f86f42f009 | |
| parent | e8c2c3d1c6ac27d0f1fa9125b79f1f927a59cfcf (diff) | |
| download | rust-d9b940e2c36eee3172c0f41f570de9e2d8ed95fd.tar.gz rust-d9b940e2c36eee3172c0f41f570de9e2d8ed95fd.zip | |
dogfood
| -rw-r--r-- | clippy_lints/src/excessive_bools.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clippy_lints/src/excessive_bools.rs b/clippy_lints/src/excessive_bools.rs index 08fcf304958..281d0631d06 100644 --- a/clippy_lints/src/excessive_bools.rs +++ b/clippy_lints/src/excessive_bools.rs @@ -86,7 +86,7 @@ pub struct ExcessiveBools { max_fn_params_bools: u64, } -#[derive(Eq, PartialEq, Debug)] +#[derive(Eq, PartialEq, Debug, Copy, Clone)] enum Kind { Struct, Fn, @@ -147,7 +147,7 @@ impl<'tcx> LateLintPass<'tcx> for ExcessiveBools { &format!("more than {} bools in a struct", self.max_struct_bools), None, "consider using a state machine or refactoring bools into two-variant enums", - ) + ); } } } @@ -164,7 +164,7 @@ impl<'tcx> LateLintPass<'tcx> for ExcessiveBools { if let Some(fn_header) = fn_kind.header() && fn_header.abi == Abi::Rust && !span.from_expansion() { - self.check_fn_sig(cx, fn_decl, span) + self.check_fn_sig(cx, fn_decl, span); } } } |
