Skip to content

Commit 4837f74

Browse files
committed
dogfood
1 parent ae01e6b commit 4837f74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_lints/src/excessive_bools.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ pub struct ExcessiveBools {
8686
max_fn_params_bools: u64,
8787
}
8888

89-
#[derive(Eq, PartialEq, Debug)]
89+
#[derive(Eq, PartialEq, Debug, Copy, Clone)]
9090
enum Kind {
9191
Struct,
9292
Fn,
@@ -147,7 +147,7 @@ impl<'tcx> LateLintPass<'tcx> for ExcessiveBools {
147147
&format!("more than {} bools in a struct", self.max_struct_bools),
148148
None,
149149
"consider using a state machine or refactoring bools into two-variant enums",
150-
)
150+
);
151151
}
152152
}
153153
}
@@ -164,7 +164,7 @@ impl<'tcx> LateLintPass<'tcx> for ExcessiveBools {
164164
if let Some(fn_header) = fn_kind.header()
165165
&& fn_header.abi == Abi::Rust
166166
&& !span.from_expansion() {
167-
self.check_fn_sig(cx, fn_decl, span)
167+
self.check_fn_sig(cx, fn_decl, span);
168168
}
169169
}
170170
}

0 commit comments

Comments
 (0)