Closed dconnolly closed 5 months ago
I added this feature for rustic and I think it's better to use a hook that runs before compilation instead of a before-save hook.
Closing this issue since this is available as part of rustic. The original rustic mode seems to be unmaintained now and I'm maintaining a fork now: https://github.com/psibi/rustic
When I discussed with @brotzeit last year, the idea was to keep rust-mode minimal and have additional features as part of rustic.
cargo clippy --fix
has been stabilized as of Rust 1.55. It would be great ifrust-mode
had an option to run and apply these fixes on save in basically the exact same way asrustfmt
is now viarust-format-on-save
.