Skip to content

Commit 43e99e5

Browse files
committed
Auto merge of #13541 - xFrednet:0-module-name-rep, r=blyxyas
Move `clippy::module_name_repetitions` to `restriction` (from `pedantic`) Rational: - Too pedantic IMO, I use `#[warn(pedantic)]` in my personal projects, but then always allow this lint. The fact that we had a few `#[expect(clippy::module_name_repetitions)]` also underlines this point IMO - STD doesn't do this either. Examples: - std::vec::Vec - std::collections::vec_deque::VecDequeue - #7666 commonly ignored --- changelog: Move [`module_name_repetitions`] to `restriction` (from `pedantic`) [#13541](#13541)
2 parents 6a281e9 + 8b075fc commit 43e99e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/item_name_repetitions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ declare_clippy_lint! {
8888
/// ```
8989
#[clippy::version = "1.33.0"]
9090
pub MODULE_NAME_REPETITIONS,
91-
pedantic,
91+
restriction,
9292
"type names prefixed/postfixed with their containing module's name"
9393
}
9494

0 commit comments

Comments
 (0)