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
Directory modules currently require #[path], but the current formatting options when a bunch of these declarations appear together are not good. This is very unfortunate since these subdirectory declarations are often one of the first bits of code in a crate.
This variation is hard to read because the alternation of syntaxes between lines
#[path = "foo/foo.rs"]
mod foo;
#[path = "barkeeper/barkeeper.rs"]
mod barkeepr;
#[path = "baz/baz.rs"]
mod baz;
And this one because the mods don't line up:
#[path = "foo/foo.rs"] mod foo;
#[path = "barkeeper/barkeeper.rs"] mod barkeeper;
#[path = "baz/baz.rs"] mod baz;
This one reads a bit better but isn't possible:
mod foo #[path = "foo/foo.rs"];
mod barkeeper #[path = "barkeeper/barkeeper.rs"];
mod baz #[path = "baz/baz.rs"];
Of course this may just indicate that the way we are dealing with subdirectories is bad.
The text was updated successfully, but these errors were encountered:
Directory modules currently require
#[path]
, but the current formatting options when a bunch of these declarations appear together are not good. This is very unfortunate since these subdirectory declarations are often one of the first bits of code in a crate.This variation is hard to read because the alternation of syntaxes between lines
And this one because the
mod
s don't line up:This one reads a bit better but isn't possible:
Of course this may just indicate that the way we are dealing with subdirectories is bad.
The text was updated successfully, but these errors were encountered: