Merge pull request #201 from obeis/remove-tryfrom-use

Remove `use std::convert::TryFrom`
This commit is contained in:
Viresh Kumar 2022-08-31 08:38:23 +05:30 committed by GitHub
commit c9249fd4f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;