Rust tools package for pre-commit.
This is a fork of doublify/pre-commit-rust.
- repo: https://github.com/noonsleeper/pre-commit-rust
rev: master
hooks:
- id: fmt
- id: cargo-check
- id: clippy
- repo: https://github.com/noonsleeper/pre-commit-rust
rev: master
hooks:
- id: fmt
args: ['--verbose', '--', '--edition', '2018' ]
Note: Cargo fmt picks up "edition" automatically from Cargo.toml, so specificying this isn't necessary in most cases.