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

@ -94,7 +94,7 @@ impl HTMLCollection {
pub fn by_class_name(window: &JS<Window>, root: &JS<Node>, classes: DOMString)
-> JS<HTMLCollection> {
struct ClassNameFilter {
classes: ~[DOMString]
classes: Vec<DOMString>
}
impl CollectionFilter for ClassNameFilter {
fn filter(&self, elem: &JS<Element>, _root: &JS<Node>) -> bool {