Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is just a utility github action to auto run
cargo fmt
and if detect changes due to auto format, it will commit the change to the same branch, thus avoid us need to run this manually or having setup a git hooks locally to catch this.it helps to simplify the code because the repeated work about re-runing
cargo fmt
can be outsource to the CI without relying on a local editor setup to auto run, or manual run.'It looks like this in practice. The
![Screenshot 2023-07-06 at 12 03 16 AM](https://private-user-images.githubusercontent.com/49754/251370826-23f306bc-41c2-4028-9558-fd3476fd4a4e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNTM0NDEsIm5iZiI6MTczOTE1MzE0MSwicGF0aCI6Ii80OTc1NC8yNTEzNzA4MjYtMjNmMzA2YmMtNDFjMi00MDI4LTk1NTgtZmQzNDc2ZmQ0YTRlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDAyMDU0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNhM2ViZTIyMGY3YWM3Njk2NzgzYWU4YmEwNjBhNDEwMzM1OGQ1ODU5ZjI2NjBkYTI3ZTQ4OTVjNTBlNTgwMTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.767176fReIOYFWBEurbHcreI1QpGGCE7JI7FMSufNKQ)
fixup:...
one is the auto format commit run in this action