diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-02-25 10:29:23 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-02-25 10:29:23 +0530 |
| commit | c950ee93c95d9cfe68ed431bdc45cea67a554757 (patch) | |
| tree | d2a3f8150b83d55a5935c312ff5eaecf9278f599 /src/libcollections/enum_set.rs | |
| parent | 1c97ac3d12074568269d34018ca254ae44fe40b9 (diff) | |
| parent | 870ad3bc75ef25a01b81ff115ab307d21c738a0f (diff) | |
| download | rust-c950ee93c95d9cfe68ed431bdc45cea67a554757.tar.gz rust-c950ee93c95d9cfe68ed431bdc45cea67a554757.zip | |
Rollup merge of #22157 - tbu-:pr_debug_collections, r=alexcrichton
r? @Gankro
Diffstat (limited to 'src/libcollections/enum_set.rs')
| -rw-r--r-- | src/libcollections/enum_set.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcollections/enum_set.rs b/src/libcollections/enum_set.rs index 12c5d7a9cc6..62dd9191521 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] |
