diff options
author | David Tolnay <dtolnay@chromium.org> | 2019-02-13 16:42:54 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-02-15 14:07:21 -0800 |
commit | fa70171dfcef8685faab2508f12514c05ea9453f (patch) | |
tree | 3c51778df6cf267f96b88ff8907f3c3978b14e69 /src/plugin/mod.rs | |
parent | b795280ddcd9d290d89ff0e284bc12ae91640baf (diff) | |
download | crosvm-fa70171dfcef8685faab2508f12514c05ea9453f.tar crosvm-fa70171dfcef8685faab2508f12514c05ea9453f.tar.gz crosvm-fa70171dfcef8685faab2508f12514c05ea9453f.tar.bz2 crosvm-fa70171dfcef8685faab2508f12514c05ea9453f.tar.lz crosvm-fa70171dfcef8685faab2508f12514c05ea9453f.tar.xz crosvm-fa70171dfcef8685faab2508f12514c05ea9453f.tar.zst crosvm-fa70171dfcef8685faab2508f12514c05ea9453f.zip |
linux: Tweak wl device setup when building without gpu
I was skimming the gpu flag code (tpm will need something similar) and found the way resource_bridge_wl_socket is used misleading. The same variable is declared in two different places depending on whether building with gpu. This CL combines them into one `let` statement. Also moved the generic param onto None which comes out more readable after rustfmt while still providing helpful context for the reader. TEST=cargo check && cargo check --features gpu Change-Id: I57a1ae214947475efa7bf01ab123a71a58411244 Reviewed-on: https://chromium-review.googlesource.com/1470915 Commit-Ready: David Tolnay <dtolnay@chromium.org> Tested-by: David Tolnay <dtolnay@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Zach Reizner <zachr@chromium.org>
Diffstat (limited to 'src/plugin/mod.rs')
0 files changed, 0 insertions, 0 deletions