summary refs log tree commit diff
path: root/x86_64
diff options
context:
space:
mode:
authorDylan Reid <dgreid@chromium.org>2020-01-12 17:29:07 +0900
committerCommit Bot <commit-bot@chromium.org>2020-01-12 14:09:06 +0000
commit4377f048e9258a06adfb8e990c2d616adda79d97 (patch)
tree3fd3f20ea73335b870d4167bf210d46283559bbc /x86_64
parenta54c64302a6a206f47680f35001559e24ea0ac48 (diff)
downloadcrosvm-4377f048e9258a06adfb8e990c2d616adda79d97.tar
crosvm-4377f048e9258a06adfb8e990c2d616adda79d97.tar.gz
crosvm-4377f048e9258a06adfb8e990c2d616adda79d97.tar.bz2
crosvm-4377f048e9258a06adfb8e990c2d616adda79d97.tar.lz
crosvm-4377f048e9258a06adfb8e990c2d616adda79d97.tar.xz
crosvm-4377f048e9258a06adfb8e990c2d616adda79d97.tar.zst
crosvm-4377f048e9258a06adfb8e990c2d616adda79d97.zip
x86_64: fix warning on 1.40
The extra parens crept back in during a recent refactoring.

Change-Id: Iaba13ddea9b7bada09f6079db7e7f8133cbfc896
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1994726
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Dylan Reid <dgreid@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'x86_64')
-rw-r--r--x86_64/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/x86_64/src/lib.rs b/x86_64/src/lib.rs
index 161235a..fa5bc85 100644
--- a/x86_64/src/lib.rs
+++ b/x86_64/src/lib.rs
@@ -711,7 +711,7 @@ impl X8664arch {
         io_bus: &mut devices::Bus,
         serial_parameters: &BTreeMap<u8, SerialParameters>,
         serial_jail: Option<Minijail>,
-    ) -> Result<(Option<u8>)> {
+    ) -> Result<Option<u8>> {
         let com_evt_1_3 = EventFd::new().map_err(Error::CreateEventFd)?;
         let com_evt_2_4 = EventFd::new().map_err(Error::CreateEventFd)?;