]> git.proxmox.com Git - rustc.git/blobdiff - src/libstd/io/cursor.rs
New upstream version 1.20.0+dfsg1
[rustc.git] / src / libstd / io / cursor.rs
index 53347eb14db0dec614cc5c9ee3dc2573496c7f06..616b4f47ed3eaafde0345b29dec4688ae773f6c0 100644 (file)
@@ -12,7 +12,7 @@ use io::prelude::*;
 
 use core::convert::TryInto;
 use cmp;
-use io::{self, SeekFrom, Error, ErrorKind};
+use io::{self, Initializer, SeekFrom, Error, ErrorKind};
 
 /// A `Cursor` wraps another type and provides it with a
 /// [`Seek`] implementation.
@@ -229,6 +229,11 @@ impl<T> Read for Cursor<T> where T: AsRef<[u8]> {
         self.pos += n as u64;
         Ok(n)
     }
+
+    #[inline]
+    unsafe fn initializer(&self) -> Initializer {
+        Initializer::nop()
+    }
 }
 
 #[stable(feature = "rust1", since = "1.0.0")]