From e94925b7dde4328bbb6fd2c96607fe0f35b5c407 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Tue, 8 Jul 2025 11:24:28 +0300 Subject: [PATCH] rng: run clippy --fix Signed-off-by: Manos Pitsidianakis --- vhost-device-rng/src/vhu_rng.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vhost-device-rng/src/vhu_rng.rs b/vhost-device-rng/src/vhu_rng.rs index 133115a..0347593 100644 --- a/vhost-device-rng/src/vhu_rng.rs +++ b/vhost-device-rng/src/vhu_rng.rs @@ -63,7 +63,7 @@ pub(crate) enum VuRngError { impl convert::From for io::Error { fn from(e: VuRngError) -> Self { - io::Error::new(io::ErrorKind::Other, e) + io::Error::other(e) } } @@ -277,7 +277,7 @@ impl VhostUserBackendMut for VuRngBacke } _ => { - warn!("unhandled device_event: {}", device_event); + warn!("unhandled device_event: {device_event}"); return Err(VuRngError::HandleEventUnknownEvent.into()); } }