From 92568c9c27c68382f7b9145513050fda3109c920 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Tue, 15 Oct 2019 13:20:13 -0700 Subject: Reformat with rustfmt from Rust 1.38.0 This just removes a few extraneous blank lines that the new rustfmt doesn't like. BUG=None TEST=bin/fmt --check Change-Id: I4482f873bdfe19f2f73f86cfdd99d6cce873593c Signed-off-by: Daniel Verkamp Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1863000 Tested-by: kokoro Reviewed-by: Stephen Barber Reviewed-by: Zach Reizner Reviewed-by: Dylan Reid --- devices/src/register_space/register_space.rs | 1 - devices/src/usb/xhci/ring_buffer.rs | 1 - tempfile/src/lib.rs | 2 -- 3 files changed, 4 deletions(-) diff --git a/devices/src/register_space/register_space.rs b/devices/src/register_space/register_space.rs index 892961a..3f30ac0 100644 --- a/devices/src/register_space/register_space.rs +++ b/devices/src/register_space/register_space.rs @@ -293,5 +293,4 @@ mod tests { regs.read(8, &mut data); assert_eq!([0, 0, 0xff, 0xee, 0xff, 0xee, 0xff, 0xee], data); } - } diff --git a/devices/src/usb/xhci/ring_buffer.rs b/devices/src/usb/xhci/ring_buffer.rs index a178ebb..3033b0e 100644 --- a/devices/src/usb/xhci/ring_buffer.rs +++ b/devices/src/usb/xhci/ring_buffer.rs @@ -264,5 +264,4 @@ mod test { let descriptor = transfer_ring.dequeue_transfer_descriptor().unwrap(); assert_eq!(descriptor.is_none(), true); } - } diff --git a/tempfile/src/lib.rs b/tempfile/src/lib.rs index 92f766b..2ba6859 100644 --- a/tempfile/src/lib.rs +++ b/tempfile/src/lib.rs @@ -32,7 +32,6 @@ pub struct Builder { prefix: String, } - // Note: we implement a builder because the protoc-rust crate uses this API from // crates.io's tempfile. Our code mostly uses TempDir::new directly. impl Builder { @@ -90,7 +89,6 @@ impl Builder { /// dropped. pub struct TempDir { path: PathBuf, - // When adding new fields to TempDir: note that anything with a Drop impl // will need to be dropped explicitly via ptr::read inside TempDir::remove // or else it gets leaked (memory safe but not ideal). -- cgit 1.4.1