diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-12-27 16:48:27 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-12-31 10:34:44 +0100 |
commit | b6117a57aae0fe39e64417ba9b8afdb2f701c9ef (patch) | |
tree | a071f05b702f07a86b6745119467b9e5aca13977 /components/util/smallvec.rs | |
parent | 37a97f3273c442fa59a3f65e8300a2527b004036 (diff) | |
download | servo-b6117a57aae0fe39e64417ba9b8afdb2f701c9ef.tar.gz servo-b6117a57aae0fe39e64417ba9b8afdb2f701c9ef.zip |
Replace the remaining to_string calls by into_string calls.
Diffstat (limited to 'components/util/smallvec.rs')
-rw-r--r-- | components/util/smallvec.rs | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/components/util/smallvec.rs b/components/util/smallvec.rs index e77b4872d2d..60e22f25a70 100644 --- a/components/util/smallvec.rs +++ b/components/util/smallvec.rs @@ -529,34 +529,34 @@ pub mod tests { #[test] pub fn test_inline() { let mut v = SmallVec16::new(); - v.push("hello".to_string()); - v.push("there".to_string()); - assert_eq!(v.as_slice(), vec!["hello".to_string(), "there".to_string()].as_slice()); + v.push("hello".into_string()); + v.push("there".into_string()); + assert_eq!(v.as_slice(), vec!["hello".into_string(), "there".into_string()].as_slice()); } #[test] pub fn test_spill() { let mut v = SmallVec2::new(); - v.push("hello".to_string()); - v.push("there".to_string()); - v.push("burma".to_string()); - v.push("shave".to_string()); - assert_eq!(v.as_slice(), vec!["hello".to_string(), "there".to_string(), "burma".to_string(), "shave".to_string()].as_slice()); + v.push("hello".into_string()); + v.push("there".into_string()); + v.push("burma".into_string()); + v.push("shave".into_string()); + assert_eq!(v.as_slice(), vec!["hello".into_string(), "there".into_string(), "burma".into_string(), "shave".into_string()].as_slice()); } #[test] pub fn test_double_spill() { let mut v = SmallVec2::new(); - v.push("hello".to_string()); - v.push("there".to_string()); - v.push("burma".to_string()); - v.push("shave".to_string()); - v.push("hello".to_string()); - v.push("there".to_string()); - v.push("burma".to_string()); - v.push("shave".to_string()); + v.push("hello".into_string()); + v.push("there".into_string()); + v.push("burma".into_string()); + v.push("shave".into_string()); + v.push("hello".into_string()); + v.push("there".into_string()); + v.push("burma".into_string()); + v.push("shave".into_string()); assert_eq!(v.as_slice(), vec![ - "hello".to_string(), "there".to_string(), "burma".to_string(), "shave".to_string(), "hello".to_string(), "there".to_string(), "burma".to_string(), "shave".to_string(), + "hello".into_string(), "there".into_string(), "burma".into_string(), "shave".into_string(), "hello".into_string(), "there".into_string(), "burma".into_string(), "shave".into_string(), ].as_slice()); } } |