Skip to content

Commit c9d5fe3

Browse files
author
Fadi Hadzh
authored
Merge pull request doublify#6 from mathieu-lemay/master
Use `cargo fmt` instead of `rustfmt`
2 parents 55f3471 + 84b3445 commit c9d5fe3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.pre-commit-hooks.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
- id: fmt
22
name: fmt
3-
description: Format files with rustfmt.
4-
entry: rustfmt --
3+
description: Format files with cargo fmt.
4+
entry: cargo fmt --
55
language: system
6-
files: \.rs$
6+
types: [rust]
77
args: []
88
- id: cargo-check
99
name: cargo check
1010
description: Check the package for errors.
1111
entry: cargo check
1212
language: system
13-
files: \.rs$
13+
types: [rust]
1414
pass_filenames: false
1515
- id: clippy
1616
name: clippy
1717
description: Lint rust sources
1818
entry: cargo clippy -- -D warnings
1919
language: system
20-
files: \.rs$
20+
types: [rust]
2121
pass_filenames: false

hooks.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- id: fmt
22
name: fmt
3-
description: Format files with rustfmt.
4-
entry: rustfmt --
3+
description: Format files with cargo fmt.
4+
entry: cargo fmt --
55
language: system
66
files: \.rs$
77
args: []

0 commit comments

Comments
 (0)