Skip to content

Commit be744b7

Browse files
committed
Move clippy::module_name_repetitions to restriction (from pedantic)
Rational: - Too pedantic IMO, it's often better to have fine grained modules and then rexport stuff instead of one gigantic file - STD doesn't do this either. Examples: - std::vec::Vec - std::collections::vec_deque::VecDequeue - rust-clippy#7666 commonly ignored
1 parent 48e98ec commit be744b7

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
@@ -71,7 +71,7 @@ declare_clippy_lint! {
7171
/// ```
7272
#[clippy::version = "1.33.0"]
7373
pub MODULE_NAME_REPETITIONS,
74-
pedantic,
74+
restriction,
7575
"type names prefixed/postfixed with their containing module's name"
7676
}
7777

0 commit comments

Comments
 (0)