Skip to content

Commit 47e81a5

Browse files
committed
Update fmt and pre-commit config
1 parent 28e4a00 commit 47e81a5

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.rustfmt.toml

+6-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ edition = "2021"
55
max_width = 120
66
merge_derives = true
77
use_field_init_shorthand = true
8+
use_small_heuristics = "Max"
89
use_try_shorthand = true
910

1011
# Nightly configurations
11-
# imports_layout = "HorizontalVertical"
12-
# imports_granularity = "Crate"
13-
# overflow_delimited_expr = true
14-
# reorder_impl_items = true
15-
# version = "Two"
12+
imports_layout = "HorizontalVertical"
13+
imports_granularity = "Crate"
14+
overflow_delimited_expr = true
15+
reorder_impl_items = true
16+
version = "Two"

.rusty-hook.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[hooks]
2-
# pre-commit = "cargo clippy && cargo +nightly fmt --all -- --check"
3-
# temp disable for this branch
2+
pre-commit = "cargo clippy --workspace --all-targets --all-features && cargo +nightly fmt --all -- --check"
3+
44
[logging]
55
verbose = true

0 commit comments

Comments
 (0)