Skip to content

Commit 52e4351

Browse files
authored
Merge pull request #405 from recmo/dependabot/cargo/thiserror-2.0
chore(deps): update thiserror requirement from 1.0 to 2.0
2 parents 1419508 + 3cbfa4e commit 52e4351

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ required-features = ["std"]
4444
[dependencies]
4545
ruint-macro = { version = "1.2.1", path = "ruint-macro" }
4646

47-
thiserror = { version = "1.0", optional = true }
47+
thiserror = { version = "2.0", optional = true }
4848

4949
# support
5050
alloy-rlp = { version = "0.3", optional = true, default-features = false }

src/support/diesel.rs

+4-10
Original file line numberDiff line numberDiff line change
@@ -55,34 +55,28 @@ where
5555
// pub struct Uint<const BITS: usize, const LIMBS: usize> { .. }
5656
// ```
5757

58-
impl<'a, const BITS: usize, const LIMBS: usize> AsExpression<Binary> for &'a Uint<BITS, LIMBS> {
58+
impl<const BITS: usize, const LIMBS: usize> AsExpression<Binary> for &Uint<BITS, LIMBS> {
5959
type Expression = Bound<Binary, Self>;
6060
fn as_expression(self) -> Self::Expression {
6161
Bound::new(self)
6262
}
6363
}
6464

65-
impl<'a, const BITS: usize, const LIMBS: usize> AsExpression<Nullable<Binary>>
66-
for &'a Uint<BITS, LIMBS>
67-
{
65+
impl<const BITS: usize, const LIMBS: usize> AsExpression<Nullable<Binary>> for &Uint<BITS, LIMBS> {
6866
type Expression = Bound<Nullable<Binary>, Self>;
6967
fn as_expression(self) -> Self::Expression {
7068
Bound::new(self)
7169
}
7270
}
7371

74-
impl<'a, 'b, const BITS: usize, const LIMBS: usize> AsExpression<Binary>
75-
for &'b &'a Uint<BITS, LIMBS>
76-
{
72+
impl<const BITS: usize, const LIMBS: usize> AsExpression<Binary> for &&Uint<BITS, LIMBS> {
7773
type Expression = Bound<Binary, Self>;
7874
fn as_expression(self) -> Self::Expression {
7975
Bound::new(self)
8076
}
8177
}
8278

83-
impl<'a, 'b, const BITS: usize, const LIMBS: usize> AsExpression<Nullable<Binary>>
84-
for &'b &'a Uint<BITS, LIMBS>
85-
{
79+
impl<const BITS: usize, const LIMBS: usize> AsExpression<Nullable<Binary>> for &&Uint<BITS, LIMBS> {
8680
type Expression = Bound<Nullable<Binary>, Self>;
8781
fn as_expression(self) -> Self::Expression {
8882
Bound::new(self)

0 commit comments

Comments
 (0)