Skip to content

Commit adad65f

Browse files
committed
Add rust fmt and toolchain files
1 parent 8182868 commit adad65f

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ repos:
3939
- id: cargo-fmt
4040
name: cargo-fmt
4141
description: Format files with cargo fmt.
42-
entry: cargo fmt
42+
entry: cargo +nightly fmt
4343
language: system
4444
types: [rust]
4545
args: ["--"]

rust-toolchain

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
stable

rustfmt.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
group_imports = "StdExternalCrate"
2+
imports_granularity = "Module"
3+
reorder_impl_items = true
4+
reorder_imports = true

0 commit comments

Comments
 (0)