Skip to content

Commit

Permalink
Ignore module_name_repetitions pedantic clippy lint in codegen
Browse files Browse the repository at this point in the history
    warning: item name ends with its containing module's name
     --> src/cfg.rs:5:10
      |
    5 | pub enum DocCfg {
      |          ^^^^^^
      |
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_name_repetitions
      = note: `-W clippy::module-name-repetitions` implied by `-W clippy::pedantic`
      = help: to override `-W clippy::pedantic` add `#[allow(clippy::module_name_repetitions)]`
  • Loading branch information
dtolnay committed Feb 26, 2024
1 parent 1fc3200 commit 8667ad9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions codegen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
clippy::items_after_statements,
clippy::manual_let_else,
clippy::match_like_matches_macro,
clippy::module_name_repetitions,
clippy::similar_names,
clippy::too_many_lines,
clippy::uninlined_format_args
Expand Down

0 comments on commit 8667ad9

Please sign in to comment.