Skip to content

Commit f1c1584

Browse files
committed
Changed lint level to restriction
1 parent 85c2b1e commit f1c1584

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1294,6 +1294,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12941294
LintId::of(&panic_unimplemented::UNIMPLEMENTED),
12951295
LintId::of(&panic_unimplemented::UNREACHABLE),
12961296
LintId::of(&pattern_type_mismatch::PATTERN_TYPE_MISMATCH),
1297+
LintId::of(&semicolon_if_nothing_returned::SEMICOLON_IF_NOTHING_RETURNED),
12971298
LintId::of(&shadow::SHADOW_REUSE),
12981299
LintId::of(&shadow::SHADOW_SAME),
12991300
LintId::of(&strings::STRING_ADD),
@@ -1367,7 +1368,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13671368
LintId::of(&ranges::RANGE_PLUS_ONE),
13681369
LintId::of(&redundant_else::REDUNDANT_ELSE),
13691370
LintId::of(&ref_option_ref::REF_OPTION_REF),
1370-
LintId::of(&semicolon_if_nothing_returned::SEMICOLON_IF_NOTHING_RETURNED),
13711371
LintId::of(&shadow::SHADOW_UNRELATED),
13721372
LintId::of(&strings::STRING_ADD_ASSIGN),
13731373
LintId::of(&trait_bounds::TRAIT_DUPLICATION_IN_BOUNDS),

clippy_lints/src/semicolon_if_nothing_returned.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::utils::{in_macro, span_lint_and_sugg, sugg, snippet_with_macro_callsite};
1+
use crate::utils::{in_macro, snippet_with_macro_callsite, span_lint_and_sugg, sugg};
22
use if_chain::if_chain;
33
use rustc_errors::Applicability;
44
use rustc_hir::{Block, ExprKind};

0 commit comments

Comments
 (0)