From b2031f4d0070b2a39e79f155d9713d74f33a4125 Mon Sep 17 00:00:00 2001 From: undercover-cactus Date: Mon, 31 Mar 2025 19:46:03 +0200 Subject: [PATCH] misc: remove cargo fmt setup action as it is already available (#15) This PR remove the unneeded action that install rustfmt as it is now already available. It remove a step in the CI. The action removed is `dtolnay/rust-toolchain@stable` --------- Co-authored-by: Facundo Farall <37149322+ffarall@users.noreply.github.com> --- .github/workflows/rust-lint.yml | 5 ----- .github/workflows/rust-tests.yml | 3 --- operator/node/src/command.rs | 2 +- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/rust-lint.yml b/.github/workflows/rust-lint.yml index 57c6f6ce..2744412f 100644 --- a/.github/workflows/rust-lint.yml +++ b/.github/workflows/rust-lint.yml @@ -58,11 +58,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable - with: - components: rustfmt - - name: Cache dependencies uses: Swatinem/rust-cache@v2 diff --git a/.github/workflows/rust-tests.yml b/.github/workflows/rust-tests.yml index 9fe9fa9d..2f3b1954 100644 --- a/.github/workflows/rust-tests.yml +++ b/.github/workflows/rust-tests.yml @@ -59,9 +59,6 @@ jobs: # By default actions/checkout checks out a merge commit. Check out the PR head instead. # https://github.com/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit ref: ${{ github.event.pull_request.head.sha }} - - uses: actions-rust-lang/setup-rust-toolchain@v1.8 - with: - cache: false - name: Run sccache-cache uses: mozilla-actions/sccache-action@v0.0.4 - uses: rui314/setup-mold@v1 diff --git a/operator/node/src/command.rs b/operator/node/src/command.rs index 19db3b8e..f6e43c6e 100644 --- a/operator/node/src/command.rs +++ b/operator/node/src/command.rs @@ -33,7 +33,7 @@ impl SubstrateCli for Cli { } fn copyright_start_year() -> i32 { - 2017 + 2025 } fn load_spec(&self, id: &str) -> Result, String> {