summary refs log tree commit diff
path: root/src/libcore/fmt
diff options
context:
space:
mode:
authorTobias Bucher <tobiasbucher5991@gmail.com>2016-04-15 17:53:43 +0200
committerTobias Bucher <tobiasbucher5991@gmail.com>2016-04-15 17:53:43 +0200
commit3df35a01e9825bbdebb986f980095e468357975f (patch)
treead26d419fc07de2c3f8c29ba211b8693ec3c0d1e /src/libcore/fmt
parentbf5da36f1dfae45941ec39ef67a41fdbd22c1a50 (diff)
downloadrust-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.rs2
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.