Closed AnthonyMichaelTDM closed 1 year ago
Looks like someone forgot to run cargo fmt ;)
Looks like someone forgot to run cargo fmt ;)
yeah haha
should probably make a git hook for that ...
should probably make a git hook for that ...
Would love to have something along those lines
adding a file named pre-commit
to your .git/hooks/ directory, with the following content:
cargo fmt --all -- --check
then making it executable with chmod +x .git/hooks/pre-commit
does the trick
adding a file named
pre-commit
to your .git/hooks/ directory, with the following content:cargo fmt --all -- --check
then making it executable with
chmod +x .git/hooks/pre-commit
does the trick
Right but usually you'd want a wrapper such as pre-commit or similar :)
This PR fixes various clippy lints
I first ran cargo clippy --fix, then fixed remaining lints manually
this is both non-essential and should be reviewed before merging, because it changes a bunch of files and could cause conflicts with stuff other people are working on