Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Move away from mod.rs #46

Open
Profpatsch opened this issue Apr 4, 2019 · 0 comments
Open

Move away from mod.rs #46

Profpatsch opened this issue Apr 4, 2019 · 0 comments
Labels
P3 minor: not prioritized

Comments

@Profpatsch
Copy link
Collaborator

According to the description in the current rust book and the issues tracked by rust-lang/rust#53125, the preferred way of doing nested modules in newer rust versions is the directory/filename combination.

So instead of

foo/bar/mod.rs
foo/bar/abc.rs

where you have a module foo::bar (implemented in foo/bar/mod.rs) and a module foo::bar::abc (implemented in foo/bar/abc.rs), you would do

foo/bar.rs
foo/bar/abc.rs

where foo:bar is implemented in in foo/bar.rs.

@Profpatsch Profpatsch added the P3 minor: not prioritized label Apr 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P3 minor: not prioritized
Projects
None yet
Development

No branches or pull requests

1 participant