mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-10 12:09:31 +00:00
The use of flatten is problematic as it introduces type ambiguity if we need to parse a string from either the embedding or the embedded structure. For this reason we are now discouraging its use. Replace the only place where it was used (the VhostUserParams struct) with a manual parser that requires the 'vhost' parameter to come first. This is a bit more constraining but at the same time is probably clearer than having it in the middle of device-parameters anyway. BUG=b:217480043 BUG=b:241300017 TEST=cargo test -p devices vhost_user_params Change-Id: I35847196fa6dc4858112ffe1e2883d64c2fae514 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3889329 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Alexandre Courbot <acourbot@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |