Skip to content

Commit

Permalink
Update fmt and pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
d0cd committed Mar 27, 2023
1 parent 28e4a00 commit 47e81a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ edition = "2021"
max_width = 120
merge_derives = true
use_field_init_shorthand = true
use_small_heuristics = "Max"
use_try_shorthand = true

# Nightly configurations
# imports_layout = "HorizontalVertical"
# imports_granularity = "Crate"
# overflow_delimited_expr = true
# reorder_impl_items = true
# version = "Two"
imports_layout = "HorizontalVertical"
imports_granularity = "Crate"
overflow_delimited_expr = true
reorder_impl_items = true
version = "Two"
4 changes: 2 additions & 2 deletions .rusty-hook.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[hooks]
# pre-commit = "cargo clippy && cargo +nightly fmt --all -- --check"
# temp disable for this branch
pre-commit = "cargo clippy --workspace --all-targets --all-features && cargo +nightly fmt --all -- --check"

[logging]
verbose = true

0 comments on commit 47e81a5

Please sign in to comment.