Merge pull request #6 from mathieu-lemay/master
Use `cargo fmt` instead of `rustfmt`
This commit is contained in:
commit
c9d5fe3776
|
@ -1,21 +1,21 @@
|
||||||
- id: fmt
|
- id: fmt
|
||||||
name: fmt
|
name: fmt
|
||||||
description: Format files with rustfmt.
|
description: Format files with cargo fmt.
|
||||||
entry: rustfmt --
|
entry: cargo fmt --
|
||||||
language: system
|
language: system
|
||||||
files: \.rs$
|
types: [rust]
|
||||||
args: []
|
args: []
|
||||||
- id: cargo-check
|
- id: cargo-check
|
||||||
name: cargo check
|
name: cargo check
|
||||||
description: Check the package for errors.
|
description: Check the package for errors.
|
||||||
entry: cargo check
|
entry: cargo check
|
||||||
language: system
|
language: system
|
||||||
files: \.rs$
|
types: [rust]
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
- id: clippy
|
- id: clippy
|
||||||
name: clippy
|
name: clippy
|
||||||
description: Lint rust sources
|
description: Lint rust sources
|
||||||
entry: cargo clippy -- -D warnings
|
entry: cargo clippy -- -D warnings
|
||||||
language: system
|
language: system
|
||||||
files: \.rs$
|
types: [rust]
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
- id: fmt
|
- id: fmt
|
||||||
name: fmt
|
name: fmt
|
||||||
description: Format files with rustfmt.
|
description: Format files with cargo fmt.
|
||||||
entry: rustfmt --
|
entry: cargo fmt --
|
||||||
language: system
|
language: system
|
||||||
files: \.rs$
|
files: \.rs$
|
||||||
args: []
|
args: []
|
||||||
|
|
Loading…
Reference in a new issue