2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-19 20:13:51 +00:00

Apply suggestions from code review

Co-Authored-By: Stjepan Glavina <stjepang@gmail.com>
This commit is contained in:
yshui 2019-09-08 23:16:34 +01:00 committed by GitHub
parent 876059cfe0
commit 8e2bf24456
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -279,9 +279,9 @@ impl<T: Evented> IoHandle<T> {
Ok(()) 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 { pub fn into_inner(mut self) -> T {
let source = self.source.take().unwrap(); let source = self.source.take().unwrap();
REACTOR REACTOR