diff options
| author | Tobias Bucher <tobiasbucher5991@gmail.com> | 2016-04-15 17:53:43 +0200 |
|---|---|---|
| committer | Tobias Bucher <tobiasbucher5991@gmail.com> | 2016-04-15 17:53:43 +0200 |
| commit | 3df35a01e9825bbdebb986f980095e468357975f (patch) | |
| tree | ad26d419fc07de2c3f8c29ba211b8693ec3c0d1e /src/libcore/fmt | |
| parent | bf5da36f1dfae45941ec39ef67a41fdbd22c1a50 (diff) | |
| download | rust-3df35a01e9825bbdebb986f980095e468357975f.tar.gz rust-3df35a01e9825bbdebb986f980095e468357975f.zip | |
Implement `Default` for more types in the standard library
Also add `Hash` to `std::cmp::Ordering` and most possible traits to `fmt::Error`.
Diffstat (limited to 'src/libcore/fmt')
| -rw-r--r-- | src/libcore/fmt/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/fmt/mod.rs b/src/libcore/fmt/mod.rs index 2f02f5c21f5..0c824b5a8e6 100644 --- a/src/libcore/fmt/mod.rs +++ b/src/libcore/fmt/mod.rs @@ -60,7 +60,7 @@ pub type Result = result::Result<(), Error>; /// occurred. Any extra information must be arranged to be transmitted through /// some other means. #[stable(feature = "rust1", since = "1.0.0")] -#[derive(Copy, Clone, Debug)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] pub struct Error; /// A collection of methods that are required to format a message into a stream. |
