Skip to content

Commit 98e169f

Browse files
author
Bryan Donlan
committed
async_fd: fixing a couple of PR nits
1 parent 62deeaf commit 98e169f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tokio/src/io/async_fd.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ impl<T: std::fmt::Debug> std::fmt::Debug for AsyncFd<T> {
7878
}
7979
}
8080

81-
const fn all_interest() -> mio::Interest {
82-
mio::Interest::READABLE.add(mio::Interest::WRITABLE)
83-
}
81+
const ALL_INTEREST: mio::Interest = mio::Interest::READABLE.add(mio::Interest::WRITABLE);
8482

8583
/// Represents an IO-ready event detected on a particular file descriptor, which
8684
/// has not yet been acknowledged. This is a `must_use` structure to help ensure
@@ -93,7 +91,7 @@ pub struct ReadyGuard<'a, T> {
9391

9492
impl<'a, T: std::fmt::Debug> std::fmt::Debug for ReadyGuard<'a, T> {
9593
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
96-
f.debug_struct("ClearReady")
94+
f.debug_struct("ReadyGuard")
9795
.field("async_fd", self.async_fd)
9896
.finish()
9997
}

0 commit comments

Comments
 (0)