-
Notifications
You must be signed in to change notification settings - Fork 5
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 formatter in CI #33
Conversation
.github/workflows/tests.yml
Outdated
@@ -63,6 +63,9 @@ jobs: | |||
- name: Build | |||
run: cargo build --verbose | |||
|
|||
- name: Cargo fmt | |||
- run: cargo fmt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure you want cargo fmt --check
for the CI, otherwise it will just apply formatting without failing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed, thanks for the catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I thought we had mixed tabs/spaces in this codebase, but maybe I'm wrong.
Problem: We need a standard way to code.
Solution: apply formatter and add that into the CI