devices: fix warning about extra parens

rust 1.40 has a new warning when there are extra parens, soRemove them.

Change-Id: Ibb565cac41ba8d72879f4cb8b949f2be30e55167
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1978140
Reviewed-by: Stephen Barber <smbarber@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Tested-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Dylan Reid <dgreid@chromium.org>
This commit is contained in:
Dylan Reid 2019-12-19 19:52:05 -08:00 committed by Commit Bot
parent e2e6cd8fe6
commit 691a619926
2 changed files with 2 additions and 2 deletions

View file

@ -229,7 +229,7 @@ impl PortId {
*self.0.lock() = 0;
}
fn get(&self) -> Result<(u8)> {
fn get(&self) -> Result<u8> {
let val = *self.0.lock();
if val == 0 {
return Err(Error::BadPortId(val));

View file

@ -631,7 +631,7 @@ impl X8664arch {
exit_evt: EventFd,
pci: Option<Arc<Mutex<devices::PciConfigIo>>>,
mem_size: u64,
) -> Result<(devices::Bus)> {
) -> Result<devices::Bus> {
struct NoDevice;
impl devices::BusDevice for NoDevice {
fn debug_label(&self) -> String {