Skip to content

Commit e262773

Browse files
committed
Clippy fix
1 parent 533e0a3 commit e262773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rand_core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ impl<R: TryRngCore + ?Sized> std::io::Read for RngReadAdapter<'_, R> {
598598
#[inline]
599599
fn read(&mut self, buf: &mut [u8]) -> Result<usize, std::io::Error> {
600600
self.inner.try_fill_bytes(buf).map_err(|err| {
601-
std::io::Error::new(std::io::ErrorKind::Other, std::format!("RNG error: {err}"))
601+
std::io::Error::other(std::format!("RNG error: {err}"))
602602
})?;
603603
Ok(buf.len())
604604
}

0 commit comments

Comments
 (0)