console: remove extraneous convert::From use

std::convert::From is included in the prelude, so no need to refer to it
by its full path.

Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
This commit is contained in:
Manos Pitsidianakis 2024-11-11 06:17:43 +02:00 committed by Manos Pitsidianakis
parent c7d4bf6f63
commit 03bf860b28

View File

@ -14,14 +14,11 @@ use crate::virtio_console::{
use crossterm::terminal::{disable_raw_mode, enable_raw_mode};
use log::{error, trace, warn};
use queues::{IsQueue, Queue};
use std::io::{self, Read, Result as IoResult, Write};
use std::net::TcpListener;
use std::os::fd::{AsRawFd, RawFd};
use std::slice::from_raw_parts;
use std::sync::{Arc, RwLock};
use std::{
convert,
io::{self, Read, Result as IoResult, Write},
};
use thiserror::Error as ThisError;
use vhost::vhost_user::message::{VhostUserProtocolFeatures, VhostUserVirtioFeatures};
use vhost_user_backend::{VhostUserBackendMut, VringEpollHandler, VringRwLock, VringT};
@ -90,9 +87,9 @@ pub(crate) enum Error {
EpollFdCreate,
}
impl convert::From<Error> for io::Error {
fn from(e: Error) -> Self {
io::Error::new(io::ErrorKind::Other, e)
impl From<Error> for io::Error {
fn from(err: Error) -> Self {
io::Error::new(io::ErrorKind::Other, err)
}
}