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

Add a command for the fix command #146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

isottellina
Copy link

@isottellina isottellina commented Dec 24, 2023

This adds a function to call cargo fix in the current project.

I needed a binding to use cargo fix in my projects, and I thought it could potentially benefit other people. Don't hesitate to close the PR if this is not welcome or this matter was already settled and I missed it.

I took the decision to allow staged files to be fixed by default, as that was more useful for me, but I'm open to discussion, of course. It could also be done by the prefix argument (e.g. 4 is, as always, customize the cargo command, but 16 could be allow-dirty and 64 don't allow anything, or in another order)

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

Successfully merging this pull request may close these issues.

1 participant