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>
This commit is contained in:
undercover-cactus 2025-03-31 19:46:03 +02:00 committed by GitHub
parent 8cd695676a
commit b2031f4d00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 9 deletions

View file

@ -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

View file

@ -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

View file

@ -33,7 +33,7 @@ impl SubstrateCli for Cli {
}
fn copyright_start_year() -> i32 {
2017
2025
}
fn load_spec(&self, id: &str) -> Result<Box<dyn sc_service::ChainSpec>, String> {