From 5bbb29c0c68bbc25c7c8ef0f9362749a7023d745 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 Nov 2024 04:45:18 +0000 Subject: [PATCH 1/2] chore(deps): update thiserror requirement from 1.0 to 2.0 Updates the requirements on [thiserror](https://github.com/dtolnay/thiserror) to permit the latest version. - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/1.0.0...2.0.3) --- updated-dependencies: - dependency-name: thiserror dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 548b916..e5a2473 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,7 +44,7 @@ required-features = ["std"] [dependencies] ruint-macro = { version = "1.2.1", path = "ruint-macro" } -thiserror = { version = "1.0", optional = true } +thiserror = { version = "2.0", optional = true } # support alloy-rlp = { version = "0.3", optional = true, default-features = false } From 3cbfa4e2bfa51a9c49a2b477c8fa56dbf86c60c4 Mon Sep 17 00:00:00 2001 From: James Date: Tue, 12 Nov 2024 12:38:16 +0700 Subject: [PATCH 2/2] lint: clippy --- src/support/diesel.rs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/support/diesel.rs b/src/support/diesel.rs index 19749b0..802b9f6 100644 --- a/src/support/diesel.rs +++ b/src/support/diesel.rs @@ -55,34 +55,28 @@ where // pub struct Uint { .. } // ``` -impl<'a, const BITS: usize, const LIMBS: usize> AsExpression for &'a Uint { +impl AsExpression for &Uint { type Expression = Bound; fn as_expression(self) -> Self::Expression { Bound::new(self) } } -impl<'a, const BITS: usize, const LIMBS: usize> AsExpression> - for &'a Uint -{ +impl AsExpression> for &Uint { type Expression = Bound, Self>; fn as_expression(self) -> Self::Expression { Bound::new(self) } } -impl<'a, 'b, const BITS: usize, const LIMBS: usize> AsExpression - for &'b &'a Uint -{ +impl AsExpression for &&Uint { type Expression = Bound; fn as_expression(self) -> Self::Expression { Bound::new(self) } } -impl<'a, 'b, const BITS: usize, const LIMBS: usize> AsExpression> - for &'b &'a Uint -{ +impl AsExpression> for &&Uint { type Expression = Bound, Self>; fn as_expression(self) -> Self::Expression { Bound::new(self)