From: Elias Rohrer Date: Thu, 6 Jun 2024 07:30:30 +0000 (+0200) Subject: Pass our `edition` to `rustfmt` X-Git-Tag: v0.0.124-beta~90^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=43b41868bb9ac811564419954f2e49741dd7d9c9;p=rust-lightning Pass our `edition` to `rustfmt` .. as it otherwise doesn't seem to pick up the right one when checkin integration tests. --- diff --git a/ci/rustfmt.sh b/ci/rustfmt.sh index a1fdf6bd7..1039429bc 100755 --- a/ci/rustfmt.sh +++ b/ci/rustfmt.sh @@ -15,5 +15,5 @@ TMP_FILE=$(mktemp) find . -name '*.rs' -type f |sort >$TMP_FILE for file in $(comm -23 $TMP_FILE rustfmt_excluded_files); do echo "Checking formatting of $file" - rustfmt $VERS --check $file + rustfmt $VERS --edition 2021 --check $file done