From 902e7c8450978ddf800b5a311f570aa982ff2ba4 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 8 Apr 2019 23:00:57 -0700 Subject: edition: Use 2018-style paths in devices crate These are import paths in new code added since CL:1513054 that need to be made compatible with 2018 edition's treatment of paths. TEST=cargo check TEST=cargo check --all-features TEST=cargo check --target aarch64-unknown-linux-gnu Change-Id: Icb3ecf2fb2015332e0c03cdc22bff2ecab2c40df Reviewed-on: https://chromium-review.googlesource.com/1559264 Commit-Ready: ChromeOS CL Exonerator Bot Tested-by: David Tolnay Tested-by: kokoro Reviewed-by: David Tolnay --- devices/src/virtio/gpu/backend.rs | 3 +-- devices/src/virtio/gpu/mod.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'devices/src/virtio/gpu') diff --git a/devices/src/virtio/gpu/backend.rs b/devices/src/virtio/gpu/backend.rs index 8d4d406..8dd6abf 100644 --- a/devices/src/virtio/gpu/backend.rs +++ b/devices/src/virtio/gpu/backend.rs @@ -807,8 +807,7 @@ impl Backend { offset: buffer.plane_offset(plane_index), }); } - let mut backed = - BackedBuffer::new_renderer_registered(buffer, res, image); + let backed = BackedBuffer::new_renderer_registered(buffer, res, image); slot.insert(Box::new(backed)); GpuResponse::OkResourcePlaneInfo { format_modifier, diff --git a/devices/src/virtio/gpu/mod.rs b/devices/src/virtio/gpu/mod.rs index c56b360..736314f 100644 --- a/devices/src/virtio/gpu/mod.rs +++ b/devices/src/virtio/gpu/mod.rs @@ -36,7 +36,7 @@ use super::{ use self::backend::Backend; use self::protocol::*; -use pci::{PciBarConfiguration, PciBarPrefetchable, PciBarRegionType}; +use crate::pci::{PciBarConfiguration, PciBarPrefetchable, PciBarRegionType}; // First queue is for virtio gpu commands. Second queue is for cursor commands, which we expect // there to be fewer of. -- cgit 1.4.1