Skip to content

Commit 32396f6

Browse files
committed
Allow single_match_else
1 parent faa1db3 commit 32396f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_lints/src/attrs.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for AttrPass {
285285
}
286286
}
287287

288+
#[allow(clippy::single_match_else)]
288289
fn check_clippy_lint_names(cx: &LateContext<'_, '_>, items: &[NestedMetaItem]) {
289290
let lint_store = cx.lints();
290291
for lint in items {
@@ -310,7 +311,7 @@ fn check_clippy_lint_names(cx: &LateContext<'_, '_>, items: &[NestedMetaItem]) {
310311
&name_lower,
311312
Some(tool_name.as_str())
312313
) {
313-
CheckLintNameResult::NoLint => {}
314+
CheckLintNameResult::NoLint => (),
314315
_ => {
315316
db.span_suggestion(lint.span,
316317
"lowercase the lint name",

0 commit comments

Comments
 (0)