Skip to content

Commit fd29148

Browse files
committed
Temporarily move clippy::unused_peekable to nursery
1 parent a926696 commit fd29148

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

Diff for: src/tools/clippy/clippy_lints/src/lib.register_all.rs

-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,6 @@ store.register_group(true, "clippy::all", Some("clippy_all"), vec![
344344
LintId::of(unnecessary_owned_empty_strings::UNNECESSARY_OWNED_EMPTY_STRINGS),
345345
LintId::of(unsafe_removed_from_name::UNSAFE_REMOVED_FROM_NAME),
346346
LintId::of(unused_io_amount::UNUSED_IO_AMOUNT),
347-
LintId::of(unused_peekable::UNUSED_PEEKABLE),
348347
LintId::of(unused_unit::UNUSED_UNIT),
349348
LintId::of(unwrap::PANICKING_UNWRAP),
350349
LintId::of(unwrap::UNNECESSARY_UNWRAP),

Diff for: src/tools/clippy/clippy_lints/src/lib.register_nursery.rs

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ store.register_group(true, "clippy::nursery", Some("clippy_nursery"), vec![
3131
LintId::of(suspicious_operation_groupings::SUSPICIOUS_OPERATION_GROUPINGS),
3232
LintId::of(trailing_empty_array::TRAILING_EMPTY_ARRAY),
3333
LintId::of(transmute::TRANSMUTE_UNDEFINED_REPR),
34+
LintId::of(unused_peekable::UNUSED_PEEKABLE),
3435
LintId::of(unused_rounding::UNUSED_ROUNDING),
3536
LintId::of(use_self::USE_SELF),
3637
])

Diff for: src/tools/clippy/clippy_lints/src/lib.register_suspicious.rs

-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,5 @@ store.register_group(true, "clippy::suspicious", Some("clippy_suspicious"), vec!
3535
LintId::of(suspicious_trait_impl::SUSPICIOUS_ARITHMETIC_IMPL),
3636
LintId::of(suspicious_trait_impl::SUSPICIOUS_OP_ASSIGN_IMPL),
3737
LintId::of(swap_ptr_to_ref::SWAP_PTR_TO_REF),
38-
LintId::of(unused_peekable::UNUSED_PEEKABLE),
3938
LintId::of(write::POSITIONAL_NAMED_FORMAT_PARAMETERS),
4039
])

Diff for: src/tools/clippy/clippy_lints/src/unused_peekable.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ declare_clippy_lint! {
3838
/// ```
3939
#[clippy::version = "1.64.0"]
4040
pub UNUSED_PEEKABLE,
41-
suspicious,
41+
nursery,
4242
"creating a peekable iterator without using any of its methods"
4343
}
4444

0 commit comments

Comments
 (0)