std: Rename the ToStr trait to ToString, and to_str to to_string.

[breaking-change]
This commit is contained in:
Richo Healey 2014-06-21 03:39:03 -07:00 committed by Brian Anderson
parent bfe4ddfdea
commit 12c334a77b
208 changed files with 1557 additions and 1390 deletions

View file

@ -666,7 +666,7 @@ mod tests {
let mut writer = MemWriter::new();
render(&g, &mut writer).unwrap();
let mut r = BufReader::new(writer.get_ref());
match r.read_to_str() {
match r.read_to_string() {
Ok(string) => Ok(string.to_string()),
Err(err) => Err(err),
}
@ -768,7 +768,7 @@ r#"digraph hasse_diagram {
render(&g, &mut writer).unwrap();
let mut r = BufReader::new(writer.get_ref());
let r = r.read_to_str();
let r = r.read_to_string();
assert_eq!(r.unwrap().as_slice(),
r#"digraph syntax_tree {