From 11fab725ae8fffc085b23eb25bd5ccc7425c66de Mon Sep 17 00:00:00 2001 From: Henry Hrvoje Tonkovac Date: Tue, 16 Jun 2026 11:52:12 +0200 Subject: [PATCH] vhost_user_net: trim qualified paths Import the std modules used in the crate instead of spelling the full paths at every use site. Signed-off-by: Henry Hrvoje Tonkovac Assisted-by: Claude:Opus-4.8 --- vhost_user_net/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vhost_user_net/src/lib.rs b/vhost_user_net/src/lib.rs index 254058abd..ffd711f74 100644 --- a/vhost_user_net/src/lib.rs +++ b/vhost_user_net/src/lib.rs @@ -10,7 +10,7 @@ use std::net::{IpAddr, Ipv4Addr}; use std::ops::Deref; use std::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd}; use std::sync::{Arc, Mutex, RwLock}; -use std::{io, process}; +use std::{io, process, result}; use libc::EFD_NONBLOCK; use log::error; @@ -32,8 +32,8 @@ use vmm_sys_util::eventfd::EventFd; type GuestMemoryMmap = vm_memory::GuestMemoryMmap; -pub type Result = std::result::Result; -type VhostUserBackendResult = std::result::Result; +pub type Result = result::Result; +type VhostUserBackendResult = io::Result; #[derive(Error, Debug)] pub enum Error { @@ -70,9 +70,9 @@ pub const SYNTAX: &str = "vhost-user-net backend parameters \ \"ip=,mask=,socket=,client=on|off,\ num_queues=,queue_size=,tap=\""; -impl std::convert::From for std::io::Error { +impl From for io::Error { fn from(e: Error) -> Self { - std::io::Error::other(e) + io::Error::other(e) } }