about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-05-09 23:56:11 +0200
committerGitHub <noreply@github.com>2019-05-09 23:56:11 +0200
commitbd17b5c9a2215cf8be8b2a361976730320a5f00f (patch)
treeba00a38aae332b768405752c34d72e8227ccde11
parent39edc68c690b2711def27f229ad3d113c55f6354 (diff)
parent902904a79a5498438e93f41d728615b54c679f19 (diff)
downloadrust-bd17b5c9a2215cf8be8b2a361976730320a5f00f.tar.gz
rust-bd17b5c9a2215cf8be8b2a361976730320a5f00f.zip
Rollup merge of #60234 - tesaguri:cursor-default, r=Amanieu
std: Derive `Default` for `io::Cursor`

I think this change is quite obvious, so made it insta-stable, but I won't insist on that.
-rw-r--r--src/libstd/io/cursor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io/cursor.rs b/src/libstd/io/cursor.rs
index f627fb0f562..a94176e7100 100644
--- a/src/libstd/io/cursor.rs
+++ b/src/libstd/io/cursor.rs
@@ -72,7 +72,7 @@ use core::convert::TryInto;
 /// }
 /// ```
 #[stable(feature = "rust1", since = "1.0.0")]
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, Default)]
 pub struct Cursor<T> {
     inner: T,
     pos: u64,