std: Remove String's to_owned

This commit is contained in:
Richo Healey
2014-05-25 03:10:11 -07:00
parent c7fe4ffe3d
commit 4348e23b26
113 changed files with 442 additions and 438 deletions

View File

@@ -198,7 +198,7 @@ fn path(w: &mut fmt::Formatter, path: &clean::Path, print_all: bool,
let cache = cache_key.get().unwrap();
let abs_root = root(&**cache, loc.as_slice());
let rel_root = match path.segments.get(0).name.as_slice() {
"self" => Some("./".to_owned()),
"self" => Some("./".to_string()),
_ => None,
};