Skip to content

Commit

Permalink
chore: Remove clippy::blocks_in_conditions (#592)
Browse files Browse the repository at this point in the history
The bug in clippy is fixed in rust 1.81, so these are not needed
any more

Co-authored-by: yuroitaki <[email protected]>
  • Loading branch information
valo and yuroitaki authored Sep 25, 2024
1 parent e00828b commit 79c00fc
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion crates/components/aead/src/aes_gcm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ impl<Ctx: Context> MpcAesGcm<Ctx> {
}

#[async_trait]
#[allow(clippy::blocks_in_conditions)]
impl<Ctx: Context> Aead for MpcAesGcm<Ctx> {
type Error = AesGcmError;

Expand Down
1 change: 0 additions & 1 deletion crates/components/block-cipher/src/cipher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ where
}

#[async_trait]
#[allow(clippy::blocks_in_conditions)]
impl<C, E> BlockCipher<C> for MpcBlockCipher<C, E>
where
C: BlockCipherCircuit,
Expand Down
1 change: 0 additions & 1 deletion crates/components/hmac-sha256/src/prf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ where
}

#[async_trait]
#[allow(clippy::blocks_in_conditions)]
impl<E> Prf for MpcPrf<E>
where
E: Memory + Load + Execute + Decode + Send,
Expand Down
1 change: 0 additions & 1 deletion crates/components/key-exchange/src/exchange.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ where
}

#[async_trait]
#[allow(clippy::blocks_in_conditions)]
impl<Ctx, C0, C1, E> KeyExchange for MpcKeyExchange<Ctx, C0, C1, E>
where
Ctx: Context,
Expand Down
1 change: 0 additions & 1 deletion crates/components/stream-cipher/src/stream_cipher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ where
}

#[async_trait]
#[allow(clippy::blocks_in_conditions)]
impl<C, E> StreamCipher<C> for MpcStreamCipher<C, E>
where
C: CtrCircuit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ impl<C, Ctx> Debug for Ghash<C, Ctx> {
}

#[async_trait]
#[allow(clippy::blocks_in_conditions)]
impl<Ctx, C> UniversalHash for Ghash<C, Ctx>
where
Ctx: Context,
Expand Down

0 comments on commit 79c00fc

Please sign in to comment.