Skip to content

Commit

Permalink
Merge pull request #405 from recmo/dependabot/cargo/thiserror-2.0
Browse files Browse the repository at this point in the history
chore(deps): update thiserror requirement from 1.0 to 2.0
  • Loading branch information
prestwich authored Nov 12, 2024
2 parents 1419508 + 3cbfa4e commit 52e4351
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
14 changes: 4 additions & 10 deletions src/support/diesel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,34 +55,28 @@ where
// pub struct Uint<const BITS: usize, const LIMBS: usize> { .. }
// ```

impl<'a, const BITS: usize, const LIMBS: usize> AsExpression<Binary> for &'a Uint<BITS, LIMBS> {
impl<const BITS: usize, const LIMBS: usize> AsExpression<Binary> for &Uint<BITS, LIMBS> {
type Expression = Bound<Binary, Self>;
fn as_expression(self) -> Self::Expression {
Bound::new(self)
}
}

impl<'a, const BITS: usize, const LIMBS: usize> AsExpression<Nullable<Binary>>
for &'a Uint<BITS, LIMBS>
{
impl<const BITS: usize, const LIMBS: usize> AsExpression<Nullable<Binary>> for &Uint<BITS, LIMBS> {
type Expression = Bound<Nullable<Binary>, Self>;
fn as_expression(self) -> Self::Expression {
Bound::new(self)
}
}

impl<'a, 'b, const BITS: usize, const LIMBS: usize> AsExpression<Binary>
for &'b &'a Uint<BITS, LIMBS>
{
impl<const BITS: usize, const LIMBS: usize> AsExpression<Binary> for &&Uint<BITS, LIMBS> {
type Expression = Bound<Binary, Self>;
fn as_expression(self) -> Self::Expression {
Bound::new(self)
}
}

impl<'a, 'b, const BITS: usize, const LIMBS: usize> AsExpression<Nullable<Binary>>
for &'b &'a Uint<BITS, LIMBS>
{
impl<const BITS: usize, const LIMBS: usize> AsExpression<Nullable<Binary>> for &&Uint<BITS, LIMBS> {
type Expression = Bound<Nullable<Binary>, Self>;
fn as_expression(self) -> Self::Expression {
Bound::new(self)
Expand Down

0 comments on commit 52e4351

Please sign in to comment.