Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to trigger clippy fix and rustfmt the file when rusitc-cargo-run? #56

Open
C-Entropy opened this issue Oct 9, 2024 · 3 comments

Comments

@C-Entropy
Copy link

C-Entropy commented Oct 9, 2024

Is it possible to trigger clippy fix and rustfmtwhen rusitc-cargo-run?
I prefer to just rusitc-cargo-run without call rusitc-cargo-build before it.

@CeleritasCelery
Copy link
Contributor

How are you running clippy fix and rustfmt with cargo build?

@C-Entropy
Copy link
Author

C-Entropy commented Oct 10, 2024

there are rustic-format-trigger and rustic-cargo-clippy-trigger-fix, that can be set to ’on-compile

https://github.com/emacs-rustic/rustic?tab=readme-ov-file#rustfmt

https://github.com/emacs-rustic/rustic?tab=readme-ov-file#auto-fixing-before-compilation

However, they will only be triggered when rusitc-cargo-build not rusitc-cargo-run

@CeleritasCelery
Copy link
Contributor

A little confusingly, rustic-cargo-run use rustic-cargo-run-command but all the other commands use rustic-run-cargo-command. I am not sure all the differences, and if we can just move cargo run to use the same function as the other commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants