You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= help: move the contents of the module to `src/other/foo.rs` or `src/other/foo/mod.rs`, and replace this with `mod foo;`
8
+
= note: `-D clippy::inline-modules` implied by `-D warnings`
9
+
= help: to override `-D warnings` add `#[allow(clippy::inline_modules)]`
10
+
11
+
error: inline module found
12
+
--> src/qux/foo.rs:1:1
13
+
|
14
+
1 | mod bar {}
15
+
| ^^^^^^^^^^
16
+
|
17
+
= help: move the contents of the module to `src/qux/foo/bar.rs` or `src/qux/foo/bar/mod.rs`, and replace this with `mod bar;`
18
+
19
+
error: inline module found
20
+
--> src/lib.rs:9:1
21
+
|
22
+
9 | / pub mod test_nested_inline_mods {
23
+
10 | | mod bar {
24
+
11 | | mod baz {}
25
+
12 | | }
26
+
13 | | }
27
+
| |_^
28
+
|
29
+
= help: move the contents of the module to `src/test_nested_inline_mods.rs` or `src/test_nested_inline_mods/mod.rs`, and replace this with `pub mod test_nested_inline_mods;`
30
+
31
+
error: inline module found
32
+
--> src/lib.rs:10:5
33
+
|
34
+
10 | / mod bar {
35
+
11 | | mod baz {}
36
+
12 | | }
37
+
| |_____^
38
+
|
39
+
= help: move the contents of the module to `src/test_nested_inline_mods/bar.rs` or `src/test_nested_inline_mods/bar/mod.rs`, and replace this with `mod bar;`
40
+
41
+
error: inline module found
42
+
--> src/lib.rs:11:9
43
+
|
44
+
11 | mod baz {}
45
+
| ^^^^^^^^^^
46
+
|
47
+
= help: move the contents of the module to `src/test_nested_inline_mods/bar/baz.rs` or `src/test_nested_inline_mods/bar/baz/mod.rs`, and replace this with `mod baz;`
48
+
49
+
error: inline module found
50
+
--> src/lib.rs:20:1
51
+
|
52
+
20 | / mod partially_escaped_test_mod {
53
+
21 | | #[cfg(test)]
54
+
22 | | mod tests {
55
+
23 | | mod bar {}
56
+
24 | | }
57
+
25 | | mod baz {}
58
+
26 | | }
59
+
| |_^
60
+
|
61
+
= help: move the contents of the module to `src/partially_escaped_test_mod.rs` or `src/partially_escaped_test_mod/mod.rs`, and replace this with `mod partially_escaped_test_mod;`
62
+
63
+
error: inline module found
64
+
--> src/lib.rs:25:5
65
+
|
66
+
25 | mod baz {}
67
+
| ^^^^^^^^^^
68
+
|
69
+
= help: move the contents of the module to `src/partially_escaped_test_mod/baz.rs` or `src/partially_escaped_test_mod/baz/mod.rs`, and replace this with `mod baz;`
70
+
71
+
error: could not compile `inline-mod` (lib) due to 7 previous errors
0 commit comments