mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2026-01-11 08:07:21 +00:00
input: run clippy --fix
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
This commit is contained in:
parent
c0051585e4
commit
909de1ae7c
@ -132,7 +132,7 @@ pub(crate) fn start_backend<D: 'static + InputDevice + Send + Sync>(
|
||||
.zip(config.event_list.iter().cloned())
|
||||
.enumerate()
|
||||
{
|
||||
let name = format!("vhu-vsock-input-{:?}", event);
|
||||
let name = format!("vhu-vsock-input-{event:?}");
|
||||
let sender = senders.clone();
|
||||
let handle = thread::Builder::new()
|
||||
.name(name.clone())
|
||||
|
||||
@ -117,7 +117,7 @@ type Result<T> = std::result::Result<T, VuInputError>;
|
||||
|
||||
impl From<VuInputError> for io::Error {
|
||||
fn from(e: VuInputError) -> Self {
|
||||
Self::new(io::ErrorKind::Other, e)
|
||||
Self::other(e)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user