We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 275123c commit e74700cCopy full SHA for e74700c
src/tools/clippy/clippy_lints/src/manual_clamp.rs
@@ -35,6 +35,9 @@ declare_clippy_lint! {
35
/// Some may consider panicking in these situations to be desirable, but it also may
36
/// introduce panicking where there wasn't any before.
37
///
38
+ /// See also [the discussion in the
39
+ /// PR](https://github.com/rust-lang/rust-clippy/pull/9484#issuecomment-1278922613).
40
+ ///
41
/// ### Examples
42
/// ```rust
43
/// # let (input, min, max) = (0, -2, 1);
@@ -78,7 +81,7 @@ declare_clippy_lint! {
78
81
/// ```
79
82
#[clippy::version = "1.66.0"]
80
83
pub MANUAL_CLAMP,
- complexity,
84
+ nursery,
85
"using a clamp pattern instead of the clamp function"
86
}
87
impl_lint_pass!(ManualClamp => [MANUAL_CLAMP]);
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments