blob: 9cadcdbe963be2f57ca84889b53bd9a48aa63540 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
set -euo pipefail
# We need the nightly toolchain for this
mv rust-toolchain-nightly.toml rust-toolchain.toml
# Similar to the CI workflow, but don't just CHECK, actualy DO the formatting
find . -name '*.rs' -not -path '*target*' | xargs rustfmt --skip-children --unstable-features --edition 2024
# Put the toolchains back, copy back to nightly and do a clean checkout of rust-toolchain
mv rust-toolchain.toml rust-toolchain-nightly.toml
git checkout -- rust-toolchain.toml
|