diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2014-11-27 19:09:59 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2014-12-06 23:53:02 -0500 |
| commit | 98ae63753bc6c2efe1c8ed50d45e665db686cde7 (patch) | |
| tree | 0a9aced79cc16baba1fb00e83cabf00a4550e43f /src/libcollections/tree | |
| parent | 976660f3f73a2dba68695fce1b697f7694af0a23 (diff) | |
| download | rust-98ae63753bc6c2efe1c8ed50d45e665db686cde7.tar.gz rust-98ae63753bc6c2efe1c8ed50d45e665db686cde7.zip | |
libcollections: remove unnecessary `to_string()` calls
Diffstat (limited to 'src/libcollections/tree')
| -rw-r--r-- | src/libcollections/tree/map.rs | 4 | ||||
| -rw-r--r-- | src/libcollections/tree/set.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libcollections/tree/map.rs b/src/libcollections/tree/map.rs index 119268c27ee..3818be5a197 100644 --- a/src/libcollections/tree/map.rs +++ b/src/libcollections/tree/map.rs @@ -1735,8 +1735,8 @@ mod test_treemap { let map_str = format!("{}", map); - assert!(map_str == "{1: 2, 3: 4}".to_string()); - assert_eq!(format!("{}", empty), "{}".to_string()); + assert!(map_str == "{1: 2, 3: 4}"); + assert_eq!(format!("{}", empty), "{}"); } #[test] diff --git a/src/libcollections/tree/set.rs b/src/libcollections/tree/set.rs index 6988b929df6..bdb33f70499 100644 --- a/src/libcollections/tree/set.rs +++ b/src/libcollections/tree/set.rs @@ -979,7 +979,7 @@ mod test { let set_str = format!("{}", set); - assert!(set_str == "{1, 2}".to_string()); - assert_eq!(format!("{}", empty), "{}".to_string()); + assert!(set_str == "{1, 2}"); + assert_eq!(format!("{}", empty), "{}"); } } |
