Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Varlakov <denis@dfns.co>
  • Loading branch information
survived committed Dec 13, 2024
1 parent 12cdb0e commit 505ee52
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions givre/src/ciphersuite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ impl<C: Ciphersuite<Curve = E>, E: Curve> AdditionalEntropy<C> for generic_ec::S
}
}
impl<C: Ciphersuite, T: AdditionalEntropy<C>> AdditionalEntropy<C> for generic_ec::NonZero<T> {
type Bytes<'b> = <T as AdditionalEntropy<C>>::Bytes<'b> where Self: 'b;
type Bytes<'b>
= <T as AdditionalEntropy<C>>::Bytes<'b>
where
Self: 'b;
fn to_bytes(&self) -> Self::Bytes<'_> {
AdditionalEntropy::<C>::to_bytes(self.as_ref())
}
Expand All @@ -222,7 +225,10 @@ impl<C: Ciphersuite, const N: usize> AdditionalEntropy<C> for [u8; N] {
}
}
impl<C: Ciphersuite, T: AdditionalEntropy<C>> AdditionalEntropy<C> for &T {
type Bytes<'b> = <T as AdditionalEntropy<C>>::Bytes<'b> where Self: 'b;
type Bytes<'b>
= <T as AdditionalEntropy<C>>::Bytes<'b>
where
Self: 'b;
fn to_bytes(&self) -> Self::Bytes<'_> {
(*self).to_bytes()
}
Expand Down

0 comments on commit 505ee52

Please sign in to comment.