Skip to content

Commit cb3cbdb

Browse files
committed
Move avoidable_slice_indexing to nursery
1 parent 83559b8 commit cb3cbdb

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
@@ -1070,7 +1070,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10701070

10711071
store.register_group(true, "clippy::pedantic", Some("clippy_pedantic"), vec![
10721072
LintId::of(attrs::INLINE_ALWAYS),
1073-
LintId::of(avoidable_slice_indexing::AVOIDABLE_SLICE_INDEXING),
10741073
LintId::of(await_holding_invalid::AWAIT_HOLDING_LOCK),
10751074
LintId::of(await_holding_invalid::AWAIT_HOLDING_REFCELL_REF),
10761075
LintId::of(bit_mask::VERBOSE_BIT_MASK),
@@ -1806,6 +1805,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
18061805

18071806
store.register_group(true, "clippy::nursery", Some("clippy_nursery"), vec![
18081807
LintId::of(attrs::EMPTY_LINE_AFTER_OUTER_ATTR),
1808+
LintId::of(avoidable_slice_indexing::AVOIDABLE_SLICE_INDEXING),
18091809
LintId::of(cognitive_complexity::COGNITIVE_COMPLEXITY),
18101810
LintId::of(copies::BRANCHES_SHARING_CODE),
18111811
LintId::of(disallowed_method::DISALLOWED_METHOD),

0 commit comments

Comments
 (0)