Skip to content

Commit 696fa4b

Browse files
authored
fix: cargo clippy and audit errors in rust 1.63 (ChainSafe#275)
1 parent 7341070 commit 696fa4b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1292
-960
lines changed

.github/workflows/build-and-test.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ name: CI
88
env:
99
# https://doc.rust-lang.org/cargo/reference/profiles.html#incremental
1010
CARGO_INCREMENTAL: 1
11+
CI: 1
12+
RUST_VERSION: 1.63.0
1113
# Investigate why it does not build with this flag
1214
# RUSTFLAGS: -Ctarget-cpu=native
1315

@@ -32,7 +34,7 @@ jobs:
3234
- uses: actions-rs/toolchain@v1
3335
with:
3436
profile: minimal
35-
toolchain: stable
37+
toolchain: ${{ env.RUST_VERSION }}
3638
components: rustfmt
3739
target: wasm32-unknown-unknown
3840
override: true
@@ -82,7 +84,7 @@ jobs:
8284
- uses: actions-rs/toolchain@v1
8385
with:
8486
profile: minimal
85-
toolchain: stable
87+
toolchain: ${{ env.RUST_VERSION }}
8688
components: clippy
8789
override: true
8890
# `cargo check` compiles the packages without performing the final step of code generation,
@@ -156,7 +158,7 @@ jobs:
156158
- uses: actions-rs/toolchain@v1
157159
with:
158160
profile: minimal
159-
toolchain: stable
161+
toolchain: ${{ env.RUST_VERSION }}
160162
components: clippy
161163
target: wasm32-unknown-unknown
162164
override: true
@@ -205,7 +207,7 @@ jobs:
205207
- uses: actions-rs/toolchain@v1
206208
with:
207209
profile: minimal
208-
toolchain: stable
210+
toolchain: ${{ env.RUST_VERSION }}
209211
components: clippy
210212
target: wasm32-unknown-unknown
211213
override: true
@@ -251,7 +253,7 @@ jobs:
251253
- uses: actions-rs/toolchain@v1
252254
with:
253255
profile: minimal
254-
toolchain: stable
256+
toolchain: ${{ env.RUST_VERSION }}
255257
override: true
256258
components: llvm-tools-preview
257259
- uses: taiki-e/install-action@cargo-llvm-cov

0 commit comments

Comments
 (0)