Fix clippy nit

This should make Kokoro happy again.

TEST=None
BUG=None

Change-Id: I601e6c03b60e1f9f93ecdb54c6c3bd76fb7d8a87
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2808133
Auto-Submit: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Abhishek Bhardwaj <abhishekbh@chromium.org>
Reviewed-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Stephen Barber <smbarber@chromium.org>
Commit-Queue: Zach Reizner <zachr@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Dennis Kempin 2021-04-06 10:54:22 -07:00 committed by Commit Bot
parent e2ec08a696
commit 8a7cc6bf2d

View file

@ -490,7 +490,7 @@ fn spawn_recv_thread(
if status == u32::MAX {
// Anyone waiting for this would continue to wait for as long as status is
// u32::MAX
status = status - 1;
status -= 1;
}
let offset = msg.buffer_offset as usize;
let consumed_len = msg.consumed_len as usize;