mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
b6c1eba580
We can use Pin::as_ref to go from a Pin<P> to a Pin<&<P as Deref>::Target>, which doesn't require <P as Deref>::Target to be Unpin. So let's have callers use that method rather than implementing the IoSource trait for different pointer types. BUG=none TEST=unit tests Change-Id: I45f54e70fe81bc0ceac3f038db47aef50201daa2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2387821 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Chirantan Ekbote <chirantan@chromium.org> Reviewed-by: Dylan Reid <dgreid@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |