Skip to content

Commit bd17b5c

Browse files
authored
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.
2 parents 39edc68 + 902904a commit bd17b5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/io/cursor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ use core::convert::TryInto;
7272
/// }
7373
/// ```
7474
#[stable(feature = "rust1", since = "1.0.0")]
75-
#[derive(Clone, Debug)]
75+
#[derive(Clone, Debug, Default)]
7676
pub struct Cursor<T> {
7777
inner: T,
7878
pos: u64,

0 commit comments

Comments
 (0)