From e4b0839b09554e7b1b546742091dd5e0aa741ff6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 Sep 2023 13:51:18 +0100 Subject: [PATCH] Bump Swatinem/rust-cache from 2.5.1 to 2.7.0 (#38) * Bump Swatinem/rust-cache from 2.5.1 to 2.7.0 Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.5.1 to 2.7.0. - [Release notes](https://github.com/swatinem/rust-cache/releases) - [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md) - [Commits](https://github.com/swatinem/rust-cache/compare/dd05243424bd5c0e585e4b55eb2d7615cdd32f1f...a95ba195448af2da9b00fb742d14ffaaf3c21f43) --- updated-dependencies: - dependency-name: Swatinem/rust-cache dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Apply cargo fmt --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com> --- .github/workflows/rust.yml | 14 +++++++------- scale-decode/src/impls/mod.rs | 4 +--- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 57eff2c..74a042a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -31,7 +31,7 @@ jobs: override: true - name: Rust Cache - uses: Swatinem/rust-cache@dd05243424bd5c0e585e4b55eb2d7615cdd32f1f # v2.5.1 + uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0 - name: Check all features uses: actions-rs/cargo@v1.0.3 @@ -61,7 +61,7 @@ jobs: override: true - name: Rust Cache - uses: Swatinem/rust-cache@dd05243424bd5c0e585e4b55eb2d7615cdd32f1f # v2.5.1 + uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0 - name: Check all features uses: actions-rs/cargo@v1.0.3 @@ -87,7 +87,7 @@ jobs: override: true - name: Rust Cache - uses: Swatinem/rust-cache@dd05243424bd5c0e585e4b55eb2d7615cdd32f1f + uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 - name: Check no_std build uses: actions-rs/cargo@v1.0.3 @@ -113,7 +113,7 @@ jobs: components: rustfmt - name: Rust Cache - uses: Swatinem/rust-cache@dd05243424bd5c0e585e4b55eb2d7615cdd32f1f # v2.5.1 + uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0 - name: Cargo fmt uses: actions-rs/cargo@v1.0.3 @@ -136,7 +136,7 @@ jobs: override: true - name: Rust Cache - uses: Swatinem/rust-cache@dd05243424bd5c0e585e4b55eb2d7615cdd32f1f # v2.5.1 + uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0 - name: Check internal documentation links run: RUSTDOCFLAGS="--deny rustdoc::broken_intra_doc_links" cargo doc -vv --workspace --no-deps --document-private-items @@ -156,7 +156,7 @@ jobs: override: true - name: Rust Cache - uses: Swatinem/rust-cache@dd05243424bd5c0e585e4b55eb2d7615cdd32f1f # v2.5.1 + uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0 - name: Cargo test uses: actions-rs/cargo@v1.0.3 @@ -192,7 +192,7 @@ jobs: override: true - name: Rust Cache - uses: Swatinem/rust-cache@dd05243424bd5c0e585e4b55eb2d7615cdd32f1f # v2.5.1 + uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0 - name: Run clippy uses: actions-rs/cargo@v1 diff --git a/scale-decode/src/impls/mod.rs b/scale-decode/src/impls/mod.rs index 73941f5..283fe15 100644 --- a/scale-decode/src/impls/mod.rs +++ b/scale-decode/src/impls/mod.rs @@ -363,9 +363,7 @@ where continue; }; // Decode the value now that we have a valid name. - let Some(val) = value.decode_item(T::into_visitor()) else { - break - }; + let Some(val) = value.decode_item(T::into_visitor()) else { break }; // Save to the map. let val = val.map_err(|e| Error::from(e).at_field(key.to_owned()))?; map.insert(key.to_owned(), val);