crosvm/resources
Daniel Verkamp cf5d251863 Fix clippy::unnecessary_get_then_check warnings
Avoid .get()ting something just to check if it's present; use
.contains_key() instead (or .entry() in the case where we want to insert
an item if the key is not present).

BUG=b:344974550
TEST=tools/clippy

Change-Id: I78ee9e5a7ad9ffd693d9a50a347663444e1516a2
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5609074
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-06-10 20:01:30 +00:00
..
src Fix clippy::unnecessary_get_then_check warnings 2024-06-10 20:01:30 +00:00
Cargo.toml