Skip to content

Commit 560c8c9

Browse files
committed
Downgrade new_ret_no_self to pedantic
1 parent 7907abe commit 560c8c9

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

clippy_lints/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11061106
LintId::of(&methods::FILTER_MAP_NEXT),
11071107
LintId::of(&methods::FIND_MAP),
11081108
LintId::of(&methods::MAP_FLATTEN),
1109+
LintId::of(&methods::NEW_RET_NO_SELF),
11091110
LintId::of(&methods::OPTION_MAP_UNWRAP_OR),
11101111
LintId::of(&methods::OPTION_MAP_UNWRAP_OR_ELSE),
11111112
LintId::of(&methods::RESULT_MAP_UNWRAP_OR_ELSE),
@@ -1267,7 +1268,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12671268
LintId::of(&methods::ITER_NTH_ZERO),
12681269
LintId::of(&methods::ITER_SKIP_NEXT),
12691270
LintId::of(&methods::MANUAL_SATURATING_ARITHMETIC),
1270-
LintId::of(&methods::NEW_RET_NO_SELF),
12711271
LintId::of(&methods::OK_EXPECT),
12721272
LintId::of(&methods::OPTION_AND_THEN_SOME),
12731273
LintId::of(&methods::OPTION_AS_REF_DEREF),
@@ -1450,7 +1450,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14501450
LintId::of(&methods::ITER_NTH_ZERO),
14511451
LintId::of(&methods::ITER_SKIP_NEXT),
14521452
LintId::of(&methods::MANUAL_SATURATING_ARITHMETIC),
1453-
LintId::of(&methods::NEW_RET_NO_SELF),
14541453
LintId::of(&methods::OK_EXPECT),
14551454
LintId::of(&methods::OPTION_MAP_OR_NONE),
14561455
LintId::of(&methods::SHOULD_IMPLEMENT_TRAIT),

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ declare_clippy_lint! {
721721
/// }
722722
/// ```
723723
pub NEW_RET_NO_SELF,
724-
style,
724+
pedantic,
725725
"not returning `Self` in a `new` method"
726726
}
727727

src/lintlist/mod.rs

Lines changed: 1 addition & 1 deletion
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: "style",
1450+
group: "pedantic",
14511451
desc: "not returning `Self` in a `new` method",
14521452
deprecation: None,
14531453
module: "methods",

0 commit comments

Comments
 (0)