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.
This commit is contained in:
Mazdak Farrokhzad 2019-05-09 23:56:11 +02:00 committed by GitHub
commit bd17b5c9a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,