Closed riftsin closed 6 months ago
Rather than passing in the edition. It would be better to use cargo to format it.
Hmm I'm not sure if that's easily feasible.
One of the issues with using cargo fmt instead of rustfmt is that cargo fmt requires a Cargo.toml in the working directory or a parent directory, rustfmt can be run from anywhere.
What if you are not in a rust project but still opened a rust file ?
There is an option --manifest-path that we can use to specify the path to the Cargo.toml file but can we reliably find it regardless of the current directory ?
Can I get your opinions on #328?
Hello,
This allows rust async code to be formatted with rustfmt.
closes #320