diff --git a/tokio/src/io/async_fd.rs b/tokio/src/io/async_fd.rs index 1bfc5046e85..98159ad4dbb 100644 --- a/tokio/src/io/async_fd.rs +++ b/tokio/src/io/async_fd.rs @@ -78,9 +78,7 @@ impl std::fmt::Debug for AsyncFd { } } -const fn all_interest() -> mio::Interest { - mio::Interest::READABLE.add(mio::Interest::WRITABLE) -} +const ALL_INTEREST: mio::Interest = mio::Interest::READABLE.add(mio::Interest::WRITABLE); /// Represents an IO-ready event detected on a particular file descriptor, which /// has not yet been acknowledged. This is a `must_use` structure to help ensure @@ -93,7 +91,7 @@ pub struct ReadyGuard<'a, T> { impl<'a, T: std::fmt::Debug> std::fmt::Debug for ReadyGuard<'a, T> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - f.debug_struct("ClearReady") + f.debug_struct("ReadyGuard") .field("async_fd", self.async_fd) .finish() }