mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-08 19:33:07 +00:00
e1a2b40496
This CL contains a few fixes to needless_return which need approval from someone familiar with the code. In two cases, the return was removed from a function that returns a value, so it is considered safe because if code is added later into the function, it will be clear that this is removing an implicit return from the function. In the last case (iommu.rs), the function has several error! macros that do not trigger an early return, so it seems that it is okay to remove the last early return. BUG=b:157245930, chromium:908640 TEST=cargo clippy (no logical code changes) Change-Id: I00685c9033499a92713eb591eadb5f90c29e761d Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4014835 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Clarissa Garvey <clarissagarvey@chromium.org> Reviewed-by: David Stevens <stevensd@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |