Skip to content

Commit

Permalink
dogfood
Browse files Browse the repository at this point in the history
  • Loading branch information
kraktus committed Oct 23, 2022
1 parent ae01e6b commit 4837f74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clippy_lints/src/excessive_bools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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",
)
);
}
}
}
Expand All @@ -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);
}
}
}

0 comments on commit 4837f74

Please sign in to comment.