Use Vec for the remaining ~[T]s in script.

This commit is contained in:
Ms2ger 2014-04-26 14:57:32 +02:00
parent 6e617d8eba
commit 55ed05f2c7
5 changed files with 12 additions and 13 deletions

View file

@ -386,10 +386,9 @@ impl Document {
}
});
});
let v: ~[&str] = title.words().collect();
title = v.connect(" ");
title = title.trim().to_owned();
title
let v: Vec<&str> = title.words().collect();
let title = v.connect(" ");
title.trim().to_owned()
}
// http://www.whatwg.org/specs/web-apps/current-work/#document.title