Skip to content

Commit

Permalink
Move clippy::module_name_repetitions to restriction (from `pedant…
Browse files Browse the repository at this point in the history
…ic`)

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
  • Loading branch information
xFrednet committed Oct 12, 2024
1 parent 48e98ec commit be744b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/item_name_repetitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ declare_clippy_lint! {
/// ```
#[clippy::version = "1.33.0"]
pub MODULE_NAME_REPETITIONS,
pedantic,
restriction,
"type names prefixed/postfixed with their containing module's name"
}

Expand Down

0 comments on commit be744b7

Please sign in to comment.