We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents afe35b6 + 28745a6 commit d9401bbCopy full SHA for d9401bb
src/libstd/sys/unix/fd.rs
@@ -11,7 +11,7 @@
11
#![unstable(reason = "not public", issue = "0", feature = "fd")]
12
13
use cmp;
14
-use io::{self, Read};
+use io::{self, Read, Initializer};
15
use libc::{self, c_int, c_void, ssize_t};
16
use mem;
17
use sync::atomic::{AtomicBool, Ordering};
@@ -270,6 +270,11 @@ impl<'a> Read for &'a FileDesc {
270
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
271
(**self).read(buf)
272
}
273
+
274
+ #[inline]
275
+ unsafe fn initializer(&self) -> Initializer {
276
+ Initializer::nop()
277
+ }
278
279
280
impl AsInner<c_int> for FileDesc {
0 commit comments