mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 20:48:55 +00:00
edition: Update devices crate to 2018 edition
Separated out of CL:1513058 to make it possible to land parts individually while the affected crate has no other significant CLs pending. This avoids repeatedly introducing non-textual conflicts with new code that adds `use` statements. TEST=cargo check TEST=cargo check --all-features TEST=cargo check --target aarch64-unknown-linux-gnu Change-Id: I964a198b54dfa7b98fa2f49a404fda3d09c0f44f Reviewed-on: https://chromium-review.googlesource.com/1519693 Commit-Ready: David Tolnay <dtolnay@chromium.org> Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: David Tolnay <dtolnay@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: David Tolnay <dtolnay@chromium.org>
This commit is contained in:
parent
3df3552e4d
commit
1b7f3ed235
4 changed files with 5 additions and 4 deletions
|
@ -2,6 +2,7 @@
|
|||
name = "devices"
|
||||
version = "0.1.0"
|
||||
authors = ["The Chromium OS Authors"]
|
||||
edition = "2018"
|
||||
|
||||
[features]
|
||||
gpu = ["gpu_buffer", "gpu_display", "gpu_renderer"]
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
// Implementation of an intel 82093AA Input/Output Advanced Programmable Interrupt Controller
|
||||
// See https://pdos.csail.mit.edu/6.828/2016/readings/ia32/ioapic.pdf for a specification.
|
||||
|
||||
use crate::split_irqchip_common::*;
|
||||
use crate::BusDevice;
|
||||
use bit_field::*;
|
||||
use split_irqchip_common::*;
|
||||
|
||||
#[bitfield]
|
||||
#[derive(Clone, Copy, PartialEq)]
|
||||
|
|
|
@ -12,8 +12,8 @@ use std::thread;
|
|||
use net_sys;
|
||||
use net_util::{MacAddress, TapT};
|
||||
|
||||
use ::vhost::NetT as VhostNetT;
|
||||
use sys_util::{EventFd, GuestMemory};
|
||||
use vhost::NetT as VhostNetT;
|
||||
use virtio_sys::{vhost, virtio_net};
|
||||
|
||||
use super::super::{Queue, VirtioDevice, TYPE_NET};
|
||||
|
@ -220,10 +220,10 @@ where
|
|||
#[cfg(test)]
|
||||
pub mod tests {
|
||||
use super::*;
|
||||
use ::vhost::net::fakes::FakeNet;
|
||||
use net_util::fakes::FakeTap;
|
||||
use std::result;
|
||||
use sys_util::{GuestAddress, GuestMemory, GuestMemoryError};
|
||||
use vhost::net::fakes::FakeNet;
|
||||
|
||||
fn create_guest_memory() -> result::Result<GuestMemory, GuestMemoryError> {
|
||||
let start_addr1 = GuestAddress(0x0);
|
||||
|
|
|
@ -9,8 +9,8 @@ use std::thread;
|
|||
|
||||
use byteorder::{ByteOrder, LittleEndian};
|
||||
|
||||
use ::vhost::Vsock as VhostVsockHandle;
|
||||
use sys_util::{EventFd, GuestMemory};
|
||||
use vhost::Vsock as VhostVsockHandle;
|
||||
use virtio_sys::vhost;
|
||||
|
||||
use super::super::{Queue, VirtioDevice, TYPE_VSOCK};
|
||||
|
|
Loading…
Reference in a new issue