-
Notifications
You must be signed in to change notification settings - Fork 139
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
In Rust 2018, mod.rs is no longer needed. foo.rs can just be foo.rs, and the submodule is still foo/bar.rs. This eliminates the special name, and if you have a bunch of files open in your editor, you can clearly see their names, instead of having a bunch of tabs named mod.rs.
Emphasis mine. I discovered that this does not mean that mod.rs
can be eliminated from your projects once and for all -- instead, it means specifically that in the case where you have only src/foo/mod.rs
, you can instead name it src/foo.rs
and it'll work just fine.
digizeph, Herrera93, nrailg, aminroosta, Timmmm and 16 more
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested