Skip to content

Commit aa31e49

Browse files
committed
Move avoidable_slice_indexing to nursery
1 parent f8454b6 commit aa31e49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/avoidable_slice_indexing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ declare_clippy_lint! {
4545
/// }
4646
/// ```
4747
pub AVOIDABLE_SLICE_INDEXING,
48-
pedantic,
48+
nursery,
4949
"avoid indexing on slices which could be deconstructed"
5050
}
5151

clippy_lints/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10721072

10731073
store.register_group(true, "clippy::pedantic", Some("clippy_pedantic"), vec![
10741074
LintId::of(attrs::INLINE_ALWAYS),
1075-
LintId::of(avoidable_slice_indexing::AVOIDABLE_SLICE_INDEXING),
10761075
LintId::of(await_holding_invalid::AWAIT_HOLDING_LOCK),
10771076
LintId::of(await_holding_invalid::AWAIT_HOLDING_REFCELL_REF),
10781077
LintId::of(bit_mask::VERBOSE_BIT_MASK),
@@ -1809,6 +1808,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
18091808

18101809
store.register_group(true, "clippy::nursery", Some("clippy_nursery"), vec![
18111810
LintId::of(attrs::EMPTY_LINE_AFTER_OUTER_ATTR),
1811+
LintId::of(avoidable_slice_indexing::AVOIDABLE_SLICE_INDEXING),
18121812
LintId::of(cognitive_complexity::COGNITIVE_COMPLEXITY),
18131813
LintId::of(copies::BRANCHES_SHARING_CODE),
18141814
LintId::of(disallowed_method::DISALLOWED_METHOD),

0 commit comments

Comments
 (0)