From 18c24a44e864ddbf03e01997d76f800165b4bed2 Mon Sep 17 00:00:00 2001 From: Phuong Nguyen Date: Fri, 12 Aug 2022 08:53:01 -0700 Subject: [PATCH] Fix tests erroring out on newest rust v1.63.0 (#177) --- .github/workflows/test.yml | 7 +++++++ README.md | 2 +- workspaces/src/types/account.rs | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5ad8c824..565f22f6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,10 +31,17 @@ jobs: strategy: matrix: platform: [ubuntu-latest] # macos-latest disabled due to time issues w/ nearcore + toolchain: [stable, 1.60.0] runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v2 + - name: "${{ matrix.toolchain }}" + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.toolchain }} + - uses: Swatinem/rust-cache@v1 - name: Add wasm32 target run: rustup target add wasm32-unknown-unknown - name: Check with stable features diff --git a/README.md b/README.md index df003362..e2e9b36a 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ **Release notes and unreleased changes can be found in the [CHANGELOG](CHANGELOG.md)** ## Requirements -- Rust v1.56 and up +- Rust v1.60.0 and up - MacOS (x86) or Linux (x86) for sandbox tests. Testnet is available regardless ### M1 MacOS diff --git a/workspaces/src/types/account.rs b/workspaces/src/types/account.rs index 26ad002e..aea3f655 100644 --- a/workspaces/src/types/account.rs +++ b/workspaces/src/types/account.rs @@ -271,7 +271,7 @@ impl Contract { /// Details of an Account or Contract. This is an non-exhaustive list of items /// that the account stores in the blockchain state. -#[derive(Debug, PartialEq)] +#[derive(Debug, Eq, PartialEq)] #[non_exhaustive] pub struct AccountDetails { pub balance: Balance,