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
and I put some local macros (only to be use within my crate) to mod utils, in this case the reordering of the modules will change the meaning of the program/module.
Unless it is not too hard to detect that utils module contains macros that would be used in api module, I think the safe default would be not to reorder it. Am I right?
(FYI, I am experiencing this problem since I am using a real time formatter VS Code plugin)
The text was updated successfully, but these errors were encountered:
Hmm, are you able to compile your code without #[macro_use] attribute on mod utils;? If the attribute is present, rustfmt will not reorder modules even when reorder_moduels is true.
Say I have the following modules:
and I put some local macros (only to be use within my crate) to
mod utils
, in this case the reordering of the modules will change the meaning of the program/module.Unless it is not too hard to detect that
utils
module contains macros that would be used inapi
module, I think the safe default would be not to reorder it. Am I right?(FYI, I am experiencing this problem since I am using a real time formatter VS Code plugin)
The text was updated successfully, but these errors were encountered: