summary refs log tree commit diff
path: root/bin/fmt
diff options
context:
space:
mode:
authorDaniel Verkamp <dverkamp@chromium.org>2019-10-16 16:03:46 -0700
committerCommit Bot <commit-bot@chromium.org>2019-10-21 19:26:03 +0000
commit3be01bd505dbb3cfd6306d69b8c50a5ac76d3912 (patch)
treebf9cdd0f0fbd276c52260ef8c8d9400530b9b743 /bin/fmt
parentcfb7db44eb9e5a0bca9a22bfb985252ef74ab251 (diff)
downloadcrosvm-3be01bd505dbb3cfd6306d69b8c50a5ac76d3912.tar
crosvm-3be01bd505dbb3cfd6306d69b8c50a5ac76d3912.tar.gz
crosvm-3be01bd505dbb3cfd6306d69b8c50a5ac76d3912.tar.bz2
crosvm-3be01bd505dbb3cfd6306d69b8c50a5ac76d3912.tar.lz
crosvm-3be01bd505dbb3cfd6306d69b8c50a5ac76d3912.tar.xz
crosvm-3be01bd505dbb3cfd6306d69b8c50a5ac76d3912.tar.zst
crosvm-3be01bd505dbb3cfd6306d69b8c50a5ac76d3912.zip
devices: vhost: simplify vhost imports
Rather than using `use ::vhost::...` to disambiguate the imports, remove
the conflicting `use virtio_sys::vhost` and add `virtio_sys::` to each
location that used `vhost::...` previously.

The `use ::vhost::...` syntax confuses rustfmt when run directly on
these two files, causing it to rewrite the imports into something that
doesn't actually compile.

BUG=None
TEST=rustfmt --check devices/src/virtio/vhost/net.rs
TEST=rustfmt --check devices/src/virtio/vhost/vsock.rs

Change-Id: I8483f5327a1e2b3ae4887f0b3cef20a917d7410e
Signed-off-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1865370
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Reviewed-by: Stephen Barber <smbarber@chromium.org>
Diffstat (limited to 'bin/fmt')
0 files changed, 0 insertions, 0 deletions