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 533e0a3 commit e262773Copy full SHA for e262773
rand_core/src/lib.rs
@@ -598,7 +598,7 @@ impl<R: TryRngCore + ?Sized> std::io::Read for RngReadAdapter<'_, R> {
598
#[inline]
599
fn read(&mut self, buf: &mut [u8]) -> Result<usize, std::io::Error> {
600
self.inner.try_fill_bytes(buf).map_err(|err| {
601
- std::io::Error::new(std::io::ErrorKind::Other, std::format!("RNG error: {err}"))
+ std::io::Error::other(std::format!("RNG error: {err}"))
602
})?;
603
Ok(buf.len())
604
}
0 commit comments