Skip to content

Commit 386d4d6

Browse files
committed
Run cargo fmt on all files
Include lefthook.yml to run cargo fmt as pre-commit hook.
1 parent 4a6e96c commit 386d4d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2910
-2026
lines changed

lefthook.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
skip_output:
2+
- meta
3+
- success
4+
- summary
5+
pre-commit:
6+
commands:
7+
rustfmt:
8+
tags: formatter
9+
glob: "*.rs"
10+
run: cargo fmt --check -- {staged_files}
11+

0 commit comments

Comments
 (0)