Skip to content

Commit

Permalink
Update lint description for avoidable_slice_indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
xFrednet committed Sep 7, 2021
1 parent 26419e6 commit 255f0e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clippy_lints/src/avoidable_slice_indexing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ declare_clippy_lint! {
/// ```
pub AVOIDABLE_SLICE_INDEXING,
pedantic,
"default lint description"
"avoid indexing on slices which could be deconstructed"
}

#[derive(Copy, Clone)]
Expand Down
4 changes: 2 additions & 2 deletions clippy_lints/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
attrs::INLINE_ALWAYS,
attrs::MISMATCHED_TARGET_OS,
attrs::USELESS_ATTRIBUTE,
avoidable_slice_indexing::AVOIDABLE_SLICE_INDEXING,
await_holding_invalid::AWAIT_HOLDING_LOCK,
await_holding_invalid::AWAIT_HOLDING_REFCELL_REF,
bit_mask::BAD_BIT_MASK,
Expand Down Expand Up @@ -918,7 +919,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
shadow::SHADOW_UNRELATED,
single_component_path_imports::SINGLE_COMPONENT_PATH_IMPORTS,
size_of_in_element_count::SIZE_OF_IN_ELEMENT_COUNT,
avoidable_slice_indexing::AVOIDABLE_SLICE_INDEXING,
slow_vector_initialization::SLOW_VECTOR_INITIALIZATION,
stable_sort_primitive::STABLE_SORT_PRIMITIVE,
strings::STRING_ADD,
Expand Down Expand Up @@ -1070,6 +1070,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:

store.register_group(true, "clippy::pedantic", Some("clippy_pedantic"), vec![
LintId::of(attrs::INLINE_ALWAYS),
LintId::of(avoidable_slice_indexing::AVOIDABLE_SLICE_INDEXING),
LintId::of(await_holding_invalid::AWAIT_HOLDING_LOCK),
LintId::of(await_holding_invalid::AWAIT_HOLDING_REFCELL_REF),
LintId::of(bit_mask::VERBOSE_BIT_MASK),
Expand Down Expand Up @@ -1145,7 +1146,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
LintId::of(ref_option_ref::REF_OPTION_REF),
LintId::of(semicolon_if_nothing_returned::SEMICOLON_IF_NOTHING_RETURNED),
LintId::of(shadow::SHADOW_UNRELATED),
LintId::of(avoidable_slice_indexing::AVOIDABLE_SLICE_INDEXING),
LintId::of(strings::STRING_ADD_ASSIGN),
LintId::of(trait_bounds::TRAIT_DUPLICATION_IN_BOUNDS),
LintId::of(trait_bounds::TYPE_REPETITION_IN_BOUNDS),
Expand Down

0 comments on commit 255f0e5

Please sign in to comment.