From a9e03c9d32a4b4280f6a0349bbca93aeac57a889 Mon Sep 17 00:00:00 2001 From: Jun Kimura Date: Tue, 24 Dec 2024 10:06:39 +0900 Subject: [PATCH] fix lint error since rust 1.83 Signed-off-by: Jun Kimura --- .github/workflows/test.yml | 2 -- crates/consensus/src/types.rs | 2 +- crates/light-client-cli/src/context.rs | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cca34da..c736db9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,8 +22,6 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - toolchain: 1.82.0 - uses: Swatinem/rust-cache@v2 - run: cargo test - run: cargo build diff --git a/crates/consensus/src/types.rs b/crates/consensus/src/types.rs index 062ffdf..170016c 100644 --- a/crates/consensus/src/types.rs +++ b/crates/consensus/src/types.rs @@ -148,7 +148,7 @@ impl<'de> serde::Deserialize<'de> for U64 { { struct MyVisitor; - impl<'de> serde::de::Visitor<'de> for MyVisitor { + impl serde::de::Visitor<'_> for MyVisitor { type Value = U64; fn expecting(&self, fmt: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { diff --git a/crates/light-client-cli/src/context.rs b/crates/light-client-cli/src/context.rs index 7ef892c..6d0bb1c 100644 --- a/crates/light-client-cli/src/context.rs +++ b/crates/light-client-cli/src/context.rs @@ -49,7 +49,6 @@ impl< } /// Store accessors - pub fn get_bootstrap( &self, ) -> Result<