Skip to content

Commit

Permalink
fmt2 just target
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Jun 15, 2023
1 parent 8f34265 commit b50e6fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ lint: fmt clippy
fmt:
cargo fmt --all -- --check

# Run Nightly cargo fmt, ordering imports
fmt2:
cargo +nightly fmt -- --config imports_granularity=Module,group_imports=StdExternalCrate

# Run cargo clippy
clippy:
cargo clippy --workspace --all-targets --all-features --bins --tests --lib --benches -- -D warnings
Expand Down
2 changes: 1 addition & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## These should be enabled in the future, but for now its a manual step to simplify usage.
## Use cargo nightly for these: cargo +nightly fmt
## Use Justfile fmt2 target instead: just fmt2
#imports_granularity = "Module"
#group_imports = "StdExternalCrate"

0 comments on commit b50e6fb

Please sign in to comment.