Skip to content

Commit d4d405e

Browse files
committed
cargo fmt
1 parent fd7a51f commit d4d405e

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/oprf.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ impl<CS: CipherSuite> OprfServer<CS> {
148148
/// [`Error::Protocol`] if the protocol fails and can't be completed.
149149
pub fn new<R: TryRngCore + TryCryptoRng>(rng: &mut R) -> Result<Self> {
150150
let mut seed = GenericArray::<_, <CS::Group as Group>::ScalarLen>::default();
151-
rng.try_fill_bytes(&mut seed)
152-
.map_err(|_| Error::Protocol)?;
151+
rng.try_fill_bytes(&mut seed).map_err(|_| Error::Protocol)?;
153152
Self::new_from_seed(&seed, &[])
154153
}
155154

src/poprf.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,7 @@ impl<CS: CipherSuite> PoprfServer<CS> {
191191
/// [`Error::Protocol`] if the protocol fails and can't be completed.
192192
pub fn new<R: TryRngCore + TryCryptoRng>(rng: &mut R) -> Result<Self> {
193193
let mut seed = GenericArray::<_, <CS::Group as Group>::ScalarLen>::default();
194-
rng.try_fill_bytes(&mut seed)
195-
.map_err(|_| Error::Protocol)?;
194+
rng.try_fill_bytes(&mut seed).map_err(|_| Error::Protocol)?;
196195

197196
Self::new_from_seed(&seed, &[])
198197
}

src/voprf.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,7 @@ impl<CS: CipherSuite> VoprfServer<CS> {
198198
/// [`Error::Protocol`] if the protocol fails and can't be completed.
199199
pub fn new<R: TryRngCore + TryCryptoRng>(rng: &mut R) -> Result<Self> {
200200
let mut seed = GenericArray::<_, <CS::Group as Group>::ScalarLen>::default();
201-
rng.try_fill_bytes(&mut seed)
202-
.map_err(|_| Error::Protocol)?;
201+
rng.try_fill_bytes(&mut seed).map_err(|_| Error::Protocol)?;
203202
// This can't fail as the hash output is type constrained.
204203
Self::new_from_seed(&seed, &[])
205204
}

0 commit comments

Comments
 (0)