Skip to content

Commit

Permalink
Add shebang to justfile and -w to cargo-sort command
Browse files Browse the repository at this point in the history
  • Loading branch information
widberg committed Sep 22, 2023
1 parent 80e22d9 commit 0ca65e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env -S just --justfile
# just (https://github.com/casey/just)
# cargo-sort (https://github.com/DevinR528/cargo-sort)

Expand All @@ -7,7 +8,7 @@ cargo-command-prefix := env_var_or_default("CARGO_COMMAND_PREFIX", "")

fmt:
cargo +nightly {{cargo-command-prefix}} fmt
cargo {{cargo-command-prefix}} sort
cargo {{cargo-command-prefix}} sort -w

clippy:
cargo {{cargo-command-prefix}} clippy
Expand Down

0 comments on commit 0ca65e0

Please sign in to comment.