diff options
author | Zach Reizner <zachr@google.com> | 2019-07-23 15:45:42 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-07-24 06:07:19 +0000 |
commit | 229063c2bf2ee365458c8fd5cdda2ab27a23bf98 (patch) | |
tree | ac1b6bd7bbf4e7fdab7f4d7ad41deaf26c1505ac /src/plugin/mod.rs | |
parent | 2f0c0b3f5dc40307af855b394079e104857d4cc2 (diff) | |
download | crosvm-229063c2bf2ee365458c8fd5cdda2ab27a23bf98.tar crosvm-229063c2bf2ee365458c8fd5cdda2ab27a23bf98.tar.gz crosvm-229063c2bf2ee365458c8fd5cdda2ab27a23bf98.tar.bz2 crosvm-229063c2bf2ee365458c8fd5cdda2ab27a23bf98.tar.lz crosvm-229063c2bf2ee365458c8fd5cdda2ab27a23bf98.tar.xz crosvm-229063c2bf2ee365458c8fd5cdda2ab27a23bf98.tar.zst crosvm-229063c2bf2ee365458c8fd5cdda2ab27a23bf98.zip |
sys_util: poll: add build_with and add_many helper functions
These functions are wrappers around multiple `add` calls that will fail at the first error. This replaces lots of ugly `and_then`, `and`, and `ok` calls that had been sprinkled around the to initialize a `PollContext`. TEST=cargo test -p sys_util ./build_test BUG=None Change-Id: I69aa1c9ad87677cf220eda57148ff8eb2268bf67 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1715580 Tested-by: Zach Reizner <zachr@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Auto-Submit: Zach Reizner <zachr@chromium.org> Reviewed-by: Dylan Reid <dgreid@chromium.org> Commit-Queue: Zach Reizner <zachr@chromium.org>
Diffstat (limited to 'src/plugin/mod.rs')
0 files changed, 0 insertions, 0 deletions