Skip to content

Commit

Permalink
build: use stable toolchain for make format
Browse files Browse the repository at this point in the history
  • Loading branch information
pacmanifold committed Aug 26, 2024
1 parent 0ec22db commit 5a16c17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ docker run --rm -v "$(pwd)":/code \
"""

[tasks.format]
toolchain = "${NIGHTLY_VERSION}"
toolchain = "${RUST_VERSION}"
install_crate = { crate_name = "rustfmt-nightly", rustup_component_name = "rustfmt-preview", binary = "rustfmt", test_arg = "--help" }
command = "cargo"
args = ["fmt", "--all", "--", "--emit=files","--verbose"]
[tasks.format-check]
toolchain = "${NIGHTLY_VERSION}"
toolchain = "${RUST_VERSION}"
install_crate = { crate_name = "rustfmt-nightly", rustup_component_name = "rustfmt-preview", binary = "rustfmt", test_arg = "--help" }
command = "cargo"
args = ["fmt", "--all", "--","--verbose", "--check"]
Expand Down

0 comments on commit 5a16c17

Please sign in to comment.