mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 20:48:55 +00:00
34d2b36a42
Replace an else block that just returns None with the equivalent use of the question mark operator, and rewrite the comment that used to be in the else block to match. Fixes the clippy warning "this if-let-else may be rewritten with the `?` operator". https://rust-lang.github.io/rust-clippy/master/index.html#question_mark BUG=None TEST=bin/clippy TEST=cargo test -p devices Change-Id: Ifda6d55c16e12fc7939343757d7f2843b4df9b27 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2885784 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Tomasz Jeznach <tjeznach@chromium.org> |
||
---|---|---|
.. | ||
clippy | ||
crate_coverage | ||
fmt | ||
preupload-clippy |