Skip to content

Commit 9579fb7

Browse files
committed
nursery group -> style
1 parent de90924 commit 9579fb7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

clippy_lints/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,6 +1324,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13241324
LintId::of(&redundant_clone::REDUNDANT_CLONE),
13251325
LintId::of(&redundant_field_names::REDUNDANT_FIELD_NAMES),
13261326
LintId::of(&redundant_pattern_matching::REDUNDANT_PATTERN_MATCHING),
1327+
LintId::of(&redundant_pub_crate::REDUNDANT_PUB_CRATE),
13271328
LintId::of(&redundant_static_lifetimes::REDUNDANT_STATIC_LIFETIMES),
13281329
LintId::of(&reference::DEREF_ADDROF),
13291330
LintId::of(&reference::REF_IN_DEREF),
@@ -1465,6 +1466,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14651466
LintId::of(&question_mark::QUESTION_MARK),
14661467
LintId::of(&redundant_field_names::REDUNDANT_FIELD_NAMES),
14671468
LintId::of(&redundant_pattern_matching::REDUNDANT_PATTERN_MATCHING),
1469+
LintId::of(&redundant_pub_crate::REDUNDANT_PUB_CRATE),
14681470
LintId::of(&redundant_static_lifetimes::REDUNDANT_STATIC_LIFETIMES),
14691471
LintId::of(&regex::REGEX_MACRO),
14701472
LintId::of(&regex::TRIVIAL_REGEX),
@@ -1672,7 +1674,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16721674
LintId::of(&mutex_atomic::MUTEX_INTEGER),
16731675
LintId::of(&needless_borrow::NEEDLESS_BORROW),
16741676
LintId::of(&path_buf_push_overwrite::PATH_BUF_PUSH_OVERWRITE),
1675-
LintId::of(&redundant_pub_crate::REDUNDANT_PUB_CRATE),
16761677
LintId::of(&use_self::USE_SELF),
16771678
]);
16781679
}

clippy_lints/src/redundant_pub_crate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ declare_clippy_lint! {
2828
/// }
2929
/// ```
3030
pub REDUNDANT_PUB_CRATE,
31-
nursery,
31+
style,
3232
"Using `pub(crate)` visibility on items that are not crate visible due to the visibility of the module that contains them."
3333
}
3434

src/lintlist/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1766,7 +1766,7 @@ pub const ALL_LINTS: [Lint; 362] = [
17661766
},
17671767
Lint {
17681768
name: "redundant_pub_crate",
1769-
group: "nursery",
1769+
group: "style",
17701770
desc: "Using `pub(crate)` visibility on items that are not crate visible due to the visibility of the module that contains them.",
17711771
deprecation: None,
17721772
module: "redundant_pub_crate",

0 commit comments

Comments
 (0)