crosvm/devices
Clarissa Garvey 5fe997d24f Allow exceptions to needless return
This CL adds allow directives for needless return on functions that have
void returns and use the pattern of "error and then return early", and
happen to have a currently-needless return as the last statement. This
is to prevent future bugs if the functions are extended.

Each case is documented with a comment explaining why the exception is
allowed.

BUG=chromium:908640, b:157245930
TEST=cargo clippy with needless_return suppression removed

Change-Id: I44f978b0cd9aa0d574acc73cd2f0a34f1b181e84
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4018392
Auto-Submit: Clarissa Garvey <clarissagarvey@chromium.org>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
2022-11-09 20:50:14 +00:00
..
src Allow exceptions to needless return 2022-11-09 20:50:14 +00:00
tests/irqchip Reformat all files with nightly 2022-10-31 21:33:33 +00:00
Cargo.toml win_audio: build and test win_audio 2022-11-01 20:40:09 +00:00