mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 10:50:28 +03:00
Change to_owned() to to_string().
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user