Assign the result of function calls that take closures to an
intermediate variable rather than matching on it directly to simplify
the complexity from clippy's point of view.
BUG=b:344974550
TEST=tools/clippy
Change-Id: I0e4b4201b59d8bd972c1f18e65bfd501893d58e5
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5617618
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Frederick Mayle <fmayle@google.com>
`base::Tube` probably ought to require `&mut self` (or be `!Sync`) since
it isn't safe to concurrently send or recv. Let's try to be stricter in
the new API, esp. since it requires non-trivial effort to port code to
this library, needing to manage tubes slightly differently shouldn't be
a big deal.
BUG=b:338274203
Change-Id: I7caf743744393aedf0a346ca23e970d15020704c
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5604651
Commit-Queue: Frederick Mayle <fmayle@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>