]> git.lizzy.rs Git - rust.git/commitdiff
derive missing trait implementations for cursor
authorJulian Orth <ju.orth@gmail.com>
Sun, 22 Mar 2015 15:16:04 +0000 (16:16 +0100)
committerJulian Orth <ju.orth@gmail.com>
Mon, 23 Mar 2015 16:48:13 +0000 (17:48 +0100)
src/libstd/io/cursor.rs

index 365f5e37b0b30a6413bd81f8361dbe560197fd8d..e6debeb2a9ce7757fd16f1ff7598c14e5518624e 100644 (file)
@@ -31,6 +31,7 @@
 /// over `T` itself. Instead, specific implementations are provided for various
 /// in-memory buffer types like `Vec<u8>` and `&[u8]`.
 #[stable(feature = "rust1", since = "1.0.0")]
+#[derive(Clone, Debug)]
 pub struct Cursor<T> {
     inner: T,
     pos: u64,