Skip to content

Commit 4144518

Browse files
author
Henrik Snöman
committed
Fixed formatting
1 parent fc207d1 commit 4144518

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/rng.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -434,12 +434,10 @@ impl<MODE> rand_core::RngCore for Rng<MODE> {
434434
dest: &mut [u8],
435435
) -> Result<(), rand_core::Error> {
436436
self.fill(dest).map_err(|_e| {
437-
core::num::NonZeroU32::new(
438-
rand_core::Error::CUSTOM_START,
439-
)
440-
// This should never fail as long as no enum variant is equal to 0
441-
.expect("Internal hal error")
442-
.into()
437+
core::num::NonZeroU32::new(rand_core::Error::CUSTOM_START)
438+
// This should never fail as long as no enum variant is equal to 0
439+
.expect("Internal hal error")
440+
.into()
443441
})
444442
}
445443
}

0 commit comments

Comments
 (0)