Skip to content

Commit 902904a

Browse files
committed
std: Derive Default for io::Cursor
1 parent bfb443e commit 902904a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/io/cursor.rs

+1-1
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)