Remove use std::convert::TryFrom

Signed-off-by: Obei Sideg <obei.sideg@gmail.com>
This commit is contained in:
Obei Sideg 2022-08-30 16:44:19 +03:00
parent 8dbf2e9886
commit 870546c06d
5 changed files with 0 additions and 6 deletions

View File

@ -6,7 +6,6 @@
// SPDX-License-Identifier: Apache-2.0
use log::{info, warn};
use std::convert::TryFrom;
use std::num::ParseIntError;
use std::sync::{Arc, RwLock};
use std::thread::spawn;

View File

@ -571,7 +571,6 @@ impl<D: I2cDevice> I2cMap<D> {
#[cfg(test)]
pub mod tests {
use super::*;
use std::convert::TryFrom;
use vmm_sys_util::tempfile::TempFile;
// Update read-buffer of each write-buffer with index + 1 value.

View File

@ -9,7 +9,6 @@ mod i2c;
mod vhu_i2c;
use log::{info, warn};
use std::convert::TryFrom;
use std::num::ParseIntError;
use std::sync::{Arc, RwLock};
use std::thread::spawn;

View File

@ -356,8 +356,6 @@ impl<D: 'static + I2cDevice + Sync + Send> VhostUserBackendMut<VringRwLock, ()>
#[cfg(test)]
mod tests {
use std::convert::TryFrom;
use virtio_bindings::bindings::virtio_ring::{VRING_DESC_F_NEXT, VRING_DESC_F_WRITE};
use virtio_queue::{mock::MockSplitQueue, Descriptor, Queue};
use vm_memory::{Address, GuestAddress, GuestMemoryAtomic, GuestMemoryMmap};

View File

@ -6,7 +6,6 @@
mod vhu_rng;
use log::{info, warn};
use std::convert::TryFrom;
use std::fs::File;
use std::sync::{Arc, Mutex, RwLock};
use std::thread;