From b78c6ce742374ef380e143876889f7cb3ea463eb Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 7 Nov 2023 10:14:55 +0000 Subject: [PATCH] rustfmt: use nightly in CI --- .github/workflows/pull-request.yml | 4 ++-- rustfmt.toml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 rustfmt.toml diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 1211692fa38..20c15c72fc7 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -28,11 +28,11 @@ jobs: - name: Set env vars run: | source ci/rust-version.sh - echo "RUST_STABLE=$rust_stable" >> $GITHUB_ENV + echo "RUST_NIGHTLY=$rust_nightly" >> $GITHUB_ENV - uses: actions-rs/toolchain@v1 with: - toolchain: ${{ env.RUST_STABLE }} + toolchain: ${{ env.RUST_NIGHTLY }} override: true profile: minimal components: rustfmt diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 00000000000..36c419bb3e5 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1 @@ +edition = "2021" \ No newline at end of file