crosvm/jail
Daniel Verkamp 1f253ce955 jail: avoid extra string conversions in build.rs
Assign the env() result to a variable so it lives long enough that we
can use a &str reference into it rather than using .to_owned() again.
No need to convert to &str and then back to String for the cases that
don't need to be modified.

Also fixes a new clippy warning about an unnecessary reference in the
PathBuf::join() call.

BUG=b:276487055
TEST=tools/clippy # with rust 1.68

Change-Id: I385bdd4dc0cde41937195630f3d5d9d93ad00468
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4390737
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Zihan Chen <zihanchen@google.com>
2023-04-04 23:19:25 +00:00
..
seccomp crosvm: add vsock support for the devices command 2023-03-22 09:23:10 +00:00
src tree-wide: apply nightly rustfmt 2023-03-27 21:30:45 +00:00
build.rs jail: avoid extra string conversions in build.rs 2023-04-04 23:19:25 +00:00
Cargo.toml crosvm: Trace seccomp filter usage precisely by filename 2023-03-14 23:18:39 +00:00