From 9813a029446305811e3973a27c8ff5f9d718f4ff Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sun, 2 Jul 2023 15:42:33 +0200 Subject: [PATCH] rustfmt the generated pac. --- d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/d b/d index acb155e..035606c 100755 --- a/d +++ b/d @@ -42,7 +42,9 @@ case "$CMD" in rm -rf build/{data,stm32-metapac} cargo run --release --bin stm32-data-gen cargo run --release --bin stm32-metapac-gen - (cd build/stm32-metapac && cargo check --features stm32h755zi-cm7,pac,metadata) + cd build/stm32-metapac + find . -name '*.rs' -not -path '*target*' | xargs rustfmt --skip-children --unstable-features --edition 2021 + cargo check --features stm32h755zi-cm7,pac,metadata ;; *) echo "unknown command"