about summary refs log tree commit diff
path: root/src/libcollections/vec_map.rs
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2014-11-27 19:09:59 -0500
committerJorge Aparicio <japaricious@gmail.com>2014-12-06 23:53:02 -0500
commit98ae63753bc6c2efe1c8ed50d45e665db686cde7 (patch)
tree0a9aced79cc16baba1fb00e83cabf00a4550e43f /src/libcollections/vec_map.rs
parent976660f3f73a2dba68695fce1b697f7694af0a23 (diff)
downloadrust-98ae63753bc6c2efe1c8ed50d45e665db686cde7.tar.gz
rust-98ae63753bc6c2efe1c8ed50d45e665db686cde7.zip
libcollections: remove unnecessary `to_string()` calls
Diffstat (limited to 'src/libcollections/vec_map.rs')
-rw-r--r--src/libcollections/vec_map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/vec_map.rs b/src/libcollections/vec_map.rs
index 3be662c071c..97b80108d76 100644
--- a/src/libcollections/vec_map.rs
+++ b/src/libcollections/vec_map.rs
@@ -871,7 +871,7 @@ mod test_map {
 
         let map_str = map.to_string();
         assert!(map_str == "{1: 2, 3: 4}" || map_str == "{3: 4, 1: 2}");
-        assert_eq!(format!("{}", empty), "{}".to_string());
+        assert_eq!(format!("{}", empty), "{}");
     }
 
     #[test]