diff --git a/src/lib.rs b/src/lib.rs index 6cc1ea2..72eb33f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -844,7 +844,10 @@ mod imp { for chunk in dest.chunks_mut(u32::max_value() as usize) { let ret = unsafe { RtlGenRandom(chunk.as_mut_ptr(), chunk.len() as u32) }; if ret == 0 { - return Err(io::Error::new(io::ErrorKind::Other, "failed to generate random bytes")); + return Err(io::Error::new( + io::ErrorKind::Other, + "failed to generate random bytes", + )); } } Ok(())