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
|
||||
name: fmt
|
||||
description: Format files with rustfmt.
|
||||
entry: rustfmt --
|
||||
description: Format files with cargo fmt.
|
||||
entry: cargo fmt --
|
||||
language: system
|
||||
files: \.rs$
|
||||
types: [rust]
|
||||
args: []
|
||||
- id: cargo-check
|
||||
name: cargo check
|
||||
description: Check the package for errors.
|
||||
entry: cargo check
|
||||
language: system
|
||||
files: \.rs$
|
||||
types: [rust]
|
||||
pass_filenames: false
|
||||
- id: clippy
|
||||
name: clippy
|
||||
description: Lint rust sources
|
||||
entry: cargo clippy -- -D warnings
|
||||
language: system
|
||||
files: \.rs$
|
||||
types: [rust]
|
||||
pass_filenames: false
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
- id: fmt
|
||||
name: fmt
|
||||
description: Format files with rustfmt.
|
||||
entry: rustfmt --
|
||||
description: Format files with cargo fmt.
|
||||
entry: cargo fmt --
|
||||
language: system
|
||||
files: \.rs$
|
||||
args: []
|
||||
|
|
Loading…
Reference in a new issue