Skip to content

Commit e802180

Browse files
committed
core: Derive Default for Wrapping<T>
1 parent 3cee9e2 commit e802180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/num/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ use slice::SliceExt;
3939
/// all standard arithmetic operations on the underlying value are
4040
/// intended to have wrapping semantics.
4141
#[stable(feature = "rust1", since = "1.0.0")]
42-
#[derive(PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Debug)]
42+
#[derive(PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Debug, Default)]
4343
pub struct Wrapping<T>(#[stable(feature = "rust1", since = "1.0.0")] pub T);
4444

4545
pub mod wrapping;

0 commit comments

Comments
 (0)