summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/self_named_module_files.txt
blob: 73e8051362883d3ba4707d97504a3cf29f345ac8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
### What it does
Checks that module layout uses only `mod.rs` files.

### Why is this bad?
Having multiple module layout styles in a project can be confusing.

### Example
```
src/
  stuff/
    stuff_files.rs
  stuff.rs
  lib.rs
```
Use instead:
```
src/
  stuff/
    stuff_files.rs
    mod.rs
  lib.rs
```