aboutsummaryrefslogtreecommitdiff
path: root/fmtall.sh
diff options
context:
space:
mode:
authorRaul Alimbekov <[email protected]>2025-12-16 09:05:22 +0300
committerGitHub <[email protected]>2025-12-16 09:05:22 +0300
commitc9a04b4b732b7a3b696eb8223664c1a7942b1875 (patch)
tree6dbe5c02e66eed8d8762f13f95afd24f8db2b38c /fmtall.sh
parentcde24a3ef1117653ba5ed4184102b33f745782fb (diff)
parent5ae6e060ec1c90561719aabdc29d5b6e7b8b0a82 (diff)
Merge branch 'main' into main
Diffstat (limited to 'fmtall.sh')
-rwxr-xr-xfmtall.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/fmtall.sh b/fmtall.sh
new file mode 100755
index 000000000..9cadcdbe9
--- /dev/null
+++ b/fmtall.sh
@@ -0,0 +1,13 @@
1#!/bin/bash
2
3set -euo pipefail
4
5# We need the nightly toolchain for this
6mv rust-toolchain-nightly.toml rust-toolchain.toml
7
8# Similar to the CI workflow, but don't just CHECK, actualy DO the formatting
9find . -name '*.rs' -not -path '*target*' | xargs rustfmt --skip-children --unstable-features --edition 2024
10
11# Put the toolchains back, copy back to nightly and do a clean checkout of rust-toolchain
12mv rust-toolchain.toml rust-toolchain-nightly.toml
13git checkout -- rust-toolchain.toml