Skip to content

Avoid mod nesting with identical name. #22

Description

@yusufraji

In #20 where we've introduced clippy, we have a clippy::module_inception warning.

warning: module has the same name as its containing module
 --> src/patch/mod.rs:5:1
  |
5 | pub mod patch;
  | ^^^^^^^^^^^^^^
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.97.0/index.html#module_inception
  = note: `#[warn(clippy::module_inception)]` on by default

We have allowed this warning in the PR, but it has to be fixed by either:

  1. re-exporting patch::patch::* as patch::*, or
  2. renaming the module

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions