diff options
| author | Philipp Krones <hello@philkrones.com> | 2022-12-19 09:44:56 +0100 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2022-12-19 09:44:56 +0100 |
| commit | 62061b8a05751c8d0075c6eeebb827b3e8e0201e (patch) | |
| tree | 411079eba9887d0247fb726911513a557bea2975 | |
| parent | 910a97d7cecf7fb11444dd4c0b2ccad70a1ece8f (diff) | |
| download | rust-62061b8a05751c8d0075c6eeebb827b3e8e0201e.tar.gz rust-62061b8a05751c8d0075c6eeebb827b3e8e0201e.zip | |
Move manual_clamp to nursery
| -rw-r--r-- | clippy_lints/src/manual_clamp.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clippy_lints/src/manual_clamp.rs b/clippy_lints/src/manual_clamp.rs index bb6d628af3b..f239736d38a 100644 --- a/clippy_lints/src/manual_clamp.rs +++ b/clippy_lints/src/manual_clamp.rs @@ -35,6 +35,9 @@ declare_clippy_lint! { /// Some may consider panicking in these situations to be desirable, but it also may /// introduce panicking where there wasn't any before. /// + /// See also [the discussion in the + /// PR](https://github.com/rust-lang/rust-clippy/pull/9484#issuecomment-1278922613). + /// /// ### Examples /// ```rust /// # let (input, min, max) = (0, -2, 1); @@ -78,7 +81,7 @@ declare_clippy_lint! { /// ``` #[clippy::version = "1.66.0"] pub MANUAL_CLAMP, - complexity, + nursery, "using a clamp pattern instead of the clamp function" } impl_lint_pass!(ManualClamp => [MANUAL_CLAMP]); |
