diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-05-09 23:56:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-09 23:56:11 +0200 |
| commit | bd17b5c9a2215cf8be8b2a361976730320a5f00f (patch) | |
| tree | ba00a38aae332b768405752c34d72e8227ccde11 | |
| parent | 39edc68c690b2711def27f229ad3d113c55f6354 (diff) | |
| parent | 902904a79a5498438e93f41d728615b54c679f19 (diff) | |
| download | rust-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.rs | 2 |
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, |
