We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc207d1 commit 4144518Copy full SHA for 4144518
src/rng.rs
@@ -434,12 +434,10 @@ impl<MODE> rand_core::RngCore for Rng<MODE> {
434
dest: &mut [u8],
435
) -> Result<(), rand_core::Error> {
436
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()
+ core::num::NonZeroU32::new(rand_core::Error::CUSTOM_START)
+ // This should never fail as long as no enum variant is equal to 0
+ .expect("Internal hal error")
+ .into()
443
})
444
}
445
0 commit comments