From 3da4de0b25b17dde42abe341f0b573628e067dc5 Mon Sep 17 00:00:00 2001 From: Richard Janis Goldschmidt Date: Mon, 23 Sep 2024 13:11:19 +0200 Subject: [PATCH] commit rust-toolchain.toml --- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- rust-toolchain.toml | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 rust-toolchain.toml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ec7dbff91..ccb50f2d6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -56,7 +56,7 @@ jobs: toolchain: nightly-2024-09-15 components: rustfmt - name: run rustfmt - run: cargo fmt --all -- --check + run: cargo +nightly-2024-09-15 fmt --all -- --check toml: runs-on: ubuntu-22.04 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f01a68c79..ef6b31ffd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,7 @@ env: CI: true RUSTFLAGS: "-D warnings -D unreachable-pub --cfg tokio_unstable" - # This must match the entry in rustup-toolchain.toml at the repository root + # This must match the entry in rust-toolchain.toml at the repository root RUSTUP_TOOLCHAIN: "1.81.0" on: pull_request: diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 000000000..dd2691e04 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel = "1.81.0" +components = ["cargo", "clippy", "rust-std", "rustc"]