From 2ae391918186623c09d126a137820a39cb89f47e Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 27 Sep 2019 14:46:28 +0100 Subject: [PATCH] vm-virtio: Fix formatting With the 1.38.0 toolchain rustfmt is even stricter about formatting now Signed-off-by: Rob Bradford --- vm-virtio/src/console.rs | 2 +- vm-virtio/src/pmem.rs | 2 +- vm-virtio/src/rng.rs | 2 +- vm-virtio/src/vsock/device.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vm-virtio/src/console.rs b/vm-virtio/src/console.rs index 4d738f5eb..d37b43a2a 100755 --- a/vm-virtio/src/console.rs +++ b/vm-virtio/src/console.rs @@ -486,7 +486,7 @@ impl VirtioDevice for Console { if let Err(e) = worker_result { error!("failed to spawn virtio_console worker: {}", e); - return Err(ActivateError::BadActivate);; + return Err(ActivateError::BadActivate); } return Ok(()); diff --git a/vm-virtio/src/pmem.rs b/vm-virtio/src/pmem.rs index 0e5685534..e828b536b 100644 --- a/vm-virtio/src/pmem.rs +++ b/vm-virtio/src/pmem.rs @@ -423,7 +423,7 @@ impl VirtioDevice for Pmem { if let Err(e) = worker_result { error!("failed to spawn virtio_pmem worker: {}", e); - return Err(ActivateError::BadActivate);; + return Err(ActivateError::BadActivate); } return Ok(()); diff --git a/vm-virtio/src/rng.rs b/vm-virtio/src/rng.rs index 24985ae9a..e02e0e69d 100755 --- a/vm-virtio/src/rng.rs +++ b/vm-virtio/src/rng.rs @@ -277,7 +277,7 @@ impl VirtioDevice for Rng { if let Err(e) = worker_result { error!("failed to spawn virtio_rng worker: {}", e); - return Err(ActivateError::BadActivate);; + return Err(ActivateError::BadActivate); } return Ok(()); diff --git a/vm-virtio/src/vsock/device.rs b/vm-virtio/src/vsock/device.rs index a17e02d8d..b13376ddb 100644 --- a/vm-virtio/src/vsock/device.rs +++ b/vm-virtio/src/vsock/device.rs @@ -496,7 +496,7 @@ where if let Err(e) = worker_result { error!("failed to spawn virtio_vsock worker: {}", e); - return Err(ActivateError::BadActivate);; + return Err(ActivateError::BadActivate); } Ok(())