Apply suggestions from code review

Co-Authored-By: Stjepan Glavina <stjepang@gmail.com>
staging
yshui 5 years ago committed by GitHub
parent 876059cfe0
commit 8e2bf24456
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -279,9 +279,9 @@ impl<T: Evented> IoHandle<T> {
Ok(())
}
/// Deregister and return the I/O source
/// Deregisters and returns the inner I/O source.
///
/// This method is to support IntoRawFd in struct that uses IoHandle
/// This method is typically used to convert `IoHandle`s to raw file descriptors/handles.
pub fn into_inner(mut self) -> T {
let source = self.source.take().unwrap();
REACTOR

Loading…
Cancel
Save