libstd: Remove ~str from all libstd modules except fmt and str.

This commit is contained in:
Patrick Walton
2014-05-16 10:45:16 -07:00
parent e402e75f4e
commit 36195eb91f
204 changed files with 2102 additions and 1496 deletions

View File

@@ -409,7 +409,7 @@ mod tests {
set_stdout(box w);
println!("hello!");
});
assert_eq!(r.read_to_str().unwrap(), "hello!\n".to_owned());
assert_eq!(r.read_to_str().unwrap(), "hello!\n".to_strbuf());
})
iotest!(fn capture_stderr() {
@@ -422,6 +422,6 @@ mod tests {
fail!("my special message");
});
let s = r.read_to_str().unwrap();
assert!(s.contains("my special message"));
assert!(s.as_slice().contains("my special message"));
})
}