about summary refs log tree commit diff
path: root/src/libcollections/enum_set.rs
diff options
context:
space:
mode:
authorTobias Bucher <tobiasbucher5991@gmail.com>2015-02-10 22:12:13 +0100
committerTobias Bucher <tobiasbucher5991@gmail.com>2015-02-24 23:47:31 +0100
commit408f7b57470d1761297e1490a38ecb79ad6e4657 (patch)
tree920127b5752efc2d7c60677447f3fe09ef8e0503 /src/libcollections/enum_set.rs
parentc9ace059e707392ceec46619ed032e93e6256dd5 (diff)
downloadrust-408f7b57470d1761297e1490a38ecb79ad6e4657.tar.gz
rust-408f7b57470d1761297e1490a38ecb79ad6e4657.zip
Modify collection's `Debug` output to resemble in their content only
Diffstat (limited to 'src/libcollections/enum_set.rs')
-rw-r--r--src/libcollections/enum_set.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcollections/enum_set.rs b/src/libcollections/enum_set.rs
index 0c957426060..bc14093ffa2 100644
--- a/src/libcollections/enum_set.rs
+++ b/src/libcollections/enum_set.rs
@@ -36,7 +36,7 @@ impl<E> Copy for EnumSet<E> {}
 #[stable(feature = "rust1", since = "1.0.0")]
 impl<E:CLike + fmt::Debug> fmt::Debug for EnumSet<E> {
     fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
-        try!(write!(fmt, "EnumSet {{"));
+        try!(write!(fmt, "{{"));
         let mut first = true;
         for e in self {
             if !first {
@@ -314,11 +314,11 @@ mod test {
     #[test]
     fn test_show() {
         let mut e = EnumSet::new();
-        assert!(format!("{:?}", e) == "EnumSet {}");
+        assert!(format!("{:?}", e) == "{}");
         e.insert(A);
-        assert!(format!("{:?}", e) == "EnumSet {A}");
+        assert!(format!("{:?}", e) == "{A}");
         e.insert(C);
-        assert!(format!("{:?}", e) == "EnumSet {A, C}");
+        assert!(format!("{:?}", e) == "{A, C}");
     }
 
     #[test]