Skip to content

Commit 2061c89

Browse files
flip1995rokob
authored andcommitted
Revert "Downgrade new_ret_no_self to pedantic"
1 parent 9f2d921 commit 2061c89

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

clippy_lints/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11151115
LintId::of(&methods::FIND_MAP),
11161116
LintId::of(&methods::INEFFICIENT_TO_STRING),
11171117
LintId::of(&methods::MAP_FLATTEN),
1118-
LintId::of(&methods::NEW_RET_NO_SELF),
11191118
LintId::of(&methods::OPTION_MAP_UNWRAP_OR),
11201119
LintId::of(&methods::OPTION_MAP_UNWRAP_OR_ELSE),
11211120
LintId::of(&methods::RESULT_MAP_UNWRAP_OR_ELSE),
@@ -1277,6 +1276,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12771276
LintId::of(&methods::ITER_NTH_ZERO),
12781277
LintId::of(&methods::ITER_SKIP_NEXT),
12791278
LintId::of(&methods::MANUAL_SATURATING_ARITHMETIC),
1279+
LintId::of(&methods::NEW_RET_NO_SELF),
12801280
LintId::of(&methods::OK_EXPECT),
12811281
LintId::of(&methods::OPTION_AND_THEN_SOME),
12821282
LintId::of(&methods::OPTION_AS_REF_DEREF),
@@ -1456,6 +1456,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14561456
LintId::of(&methods::ITER_NTH_ZERO),
14571457
LintId::of(&methods::ITER_SKIP_NEXT),
14581458
LintId::of(&methods::MANUAL_SATURATING_ARITHMETIC),
1459+
LintId::of(&methods::NEW_RET_NO_SELF),
14591460
LintId::of(&methods::OK_EXPECT),
14601461
LintId::of(&methods::OPTION_MAP_OR_NONE),
14611462
LintId::of(&methods::RESULT_MAP_OR_INTO_OPTION),

clippy_lints/src/methods/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ declare_clippy_lint! {
748748
/// }
749749
/// ```
750750
pub NEW_RET_NO_SELF,
751-
pedantic,
751+
style,
752752
"not returning `Self` in a `new` method"
753753
}
754754

src/lintlist/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
14471447
},
14481448
Lint {
14491449
name: "new_ret_no_self",
1450-
group: "pedantic",
1450+
group: "style",
14511451
desc: "not returning `Self` in a `new` method",
14521452
deprecation: None,
14531453
module: "methods",

0 commit comments

Comments
 (0)