std: Derive Default for io::Cursor

This commit is contained in:
Daiki Mizukami 2019-04-24 20:12:24 +09:00
parent bfb443eb1d
commit 902904a79a
No known key found for this signature in database
GPG Key ID: 10478E598B944AA2

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,