Skip to content

Commit 3cbfa4e

Browse files
committed
lint: clippy
1 parent 5bbb29c commit 3cbfa4e

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

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)