Change to_owned() to to_string().

This commit is contained in:
Ahmed Charles
2014-05-29 11:59:53 -07:00
parent 50b8528970
commit 2dfad3bf52
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -613,7 +613,7 @@ fn test_repr() {
fn exact_test<T>(t: &T, e:&str) {
let mut m = io::MemWriter::new();
write_repr(&mut m as &mut io::Writer, t).unwrap();
let s = str::from_utf8(m.unwrap().as_slice()).unwrap().to_owned();
let s = str::from_utf8(m.unwrap().as_slice()).unwrap().to_string();
assert_eq!(s.as_slice(), e);
}