Run rust fmt on pre-commit (#2608)

### Description
Tired of the workflow telling you to run `cargo fmt`? Worry no more, now
on commit all your rust code will get checked so you don't have to wait
for the pipeline to fail.

### Drive-by changes

None

### Related issues

### Backward compatibility

Yes

### Testing

manual
dan/rust-caching
Mattie Conover 1 year ago committed by GitHub
parent 19838b11c6
commit dce883d3a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .husky/pre-commit

@ -2,3 +2,4 @@
. "$(dirname -- "$0")/_/husky.sh" . "$(dirname -- "$0")/_/husky.sh"
yarn lint-staged yarn lint-staged
cargo fmt --all --check --manifest-path rust/Cargo.toml

Loading…
Cancel
Save