]> git.lizzy.rs Git - rust.git/blobdiff - src/libcollections/bit.rs
rollup merge of #21457: alexcrichton/issue-21436
[rust.git] / src / libcollections / bit.rs
index 13e7e88d5161224336e050df96962a108dea813d..4c07f5b31e64d01c0afa8e7d405d5c49b131efb8 100644 (file)
@@ -972,7 +972,7 @@ fn cmp(&self, other: &Bitv) -> Ordering {
 }
 
 #[stable]
-impl fmt::Show for Bitv {
+impl fmt::Debug for Bitv {
     fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
         for bit in self.iter() {
             try!(write!(fmt, "{}", if bit { 1u32 } else { 0u32 }));
@@ -1727,7 +1727,7 @@ pub fn remove(&mut self, value: &uint) -> bool {
     }
 }
 
-impl fmt::Show for BitvSet {
+impl fmt::Debug for BitvSet {
     fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
         try!(write!(fmt, "BitvSet {{"));
         let mut first = true;
@@ -2622,7 +2622,7 @@ fn test_bitv_set_show() {
         s.insert(10);
         s.insert(50);
         s.insert(2);
-        assert_eq!("BitvSet {1u, 2u, 10u, 50u}", format!("{:?}", s));
+        assert_eq!("BitvSet {1, 2, 10, 50}", format!("{:?}", s));
     }
 
     #[test]