1
Fork 0

libcore: Remove all uses of ~str from libcore.

[breaking-change]
This commit is contained in:
Patrick Walton 2014-05-19 23:19:56 -07:00
parent 5633d4641f
commit e878721d70
110 changed files with 868 additions and 792 deletions

View file

@ -971,7 +971,7 @@ impl Context {
// does make formatting *a lot* nicer.
current_location_key.replace(Some(cx.current.clone()));
let mut title = StrBuf::from_str(cx.current.connect("::"));
let mut title = cx.current.connect("::");
if pushname {
if title.len() > 0 {
title.push_str("::");
@ -1141,7 +1141,7 @@ fn item_path(item: &clean::Item) -> StrBuf {
}
fn full_path(cx: &Context, item: &clean::Item) -> StrBuf {
let mut s = StrBuf::from_str(cx.current.connect("::"));
let mut s = cx.current.connect("::");
s.push_str("::");
s.push_str(item.name.get_ref().as_slice());
return s