Skip to content

Commit 8a6aca3

Browse files
committed
Auto merge of #10101 - flip1995:manual_clamp_nursery, r=xFrednet
Move manual_clamp to nursery As discussed in #9484 (comment) and decided in the [Zulip meeting](https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/Meeting.202022-12-13/near/315626226) changelog: Moved [`manual_clamp`] to `nursery` (Now allow-by-default) [#10101](#10101) <!-- changelog_checked -->
2 parents 910a97d + 62061b8 commit 8a6aca3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clippy_lints/src/manual_clamp.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ declare_clippy_lint! {
3535
/// Some may consider panicking in these situations to be desirable, but it also may
3636
/// introduce panicking where there wasn't any before.
3737
///
38+
/// See also [the discussion in the
39+
/// PR](https://github.com/rust-lang/rust-clippy/pull/9484#issuecomment-1278922613).
40+
///
3841
/// ### Examples
3942
/// ```rust
4043
/// # let (input, min, max) = (0, -2, 1);
@@ -78,7 +81,7 @@ declare_clippy_lint! {
7881
/// ```
7982
#[clippy::version = "1.66.0"]
8083
pub MANUAL_CLAMP,
81-
complexity,
84+
nursery,
8285
"using a clamp pattern instead of the clamp function"
8386
}
8487
impl_lint_pass!(ManualClamp => [MANUAL_CLAMP]);

0 commit comments

Comments
 (0)