mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 13:23:08 +00:00
548754cd2f
Many functions took a reference to PathBuf, but then just passed the parameter to File::open(), so they can be changed to a reference to Path instead to avoid a potential allocation. https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg BUG=None TEST=bin/clippy Change-Id: Ife5a52df2ba16da1ce1307efb2fe921cd8b4f956 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2862581 Reviewed-by: Zach Reizner <zachr@chromium.org> Reviewed-by: Dylan Reid <dgreid@chromium.org> Tested-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |