diff --git a/cros_async/src/poll_or_ring.rs b/cros_async/src/poll_or_ring.rs index 73ba4ec1a9..3e255d0782 100644 --- a/cros_async/src/poll_or_ring.rs +++ b/cros_async/src/poll_or_ring.rs @@ -267,6 +267,19 @@ impl U64Source { } } +impl std::ops::Deref for U64Source { + type Target = F; + fn deref(&self) -> &Self::Target { + &self.inner + } +} + +impl std::ops::DerefMut for U64Source { + fn deref_mut(&mut self) -> &mut Self::Target { + &mut self.inner + } +} + #[cfg(test)] mod tests { use std::fs::{File, OpenOptions};