diff options
author | Keegan McAllister <kmcallister@mozilla.com> | 2014-09-16 13:00:18 -0700 |
---|---|---|
committer | Keegan McAllister <kmcallister@mozilla.com> | 2014-09-20 13:00:06 -0700 |
commit | a640a7c5c34f914d3c8515f9b89ae78919af4913 (patch) | |
tree | 9677c1626b445a50bfedfbe82fe426578c64996d /components/script/dom/htmlcollection.rs | |
parent | 8a7eefefd52f7e202069d6a58853d8f31e2c4113 (diff) | |
download | servo-a640a7c5c34f914d3c8515f9b89ae78919af4913.tar.gz servo-a640a7c5c34f914d3c8515f9b89ae78919af4913.zip |
Upgrade to rustc 0.12.0-pre (4d2af3861 2014-09-17 15:51:11 +0000)
Diffstat (limited to 'components/script/dom/htmlcollection.rs')
-rw-r--r-- | components/script/dom/htmlcollection.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmlcollection.rs b/components/script/dom/htmlcollection.rs index 6a4baf3f5dc..b321d40b4eb 100644 --- a/components/script/dom/htmlcollection.rs +++ b/components/script/dom/htmlcollection.rs @@ -23,7 +23,7 @@ pub trait CollectionFilter { fn filter(&self, elem: JSRef<Element>, root: JSRef<Node>) -> bool; } -impl<S: Encoder<E>, E> Encodable<S, E> for Box<CollectionFilter> { +impl<S: Encoder<E>, E> Encodable<S, E> for Box<CollectionFilter+'static> { fn encode(&self, _s: &mut S) -> Result<(), E> { Ok(()) } @@ -33,7 +33,7 @@ impl<S: Encoder<E>, E> Encodable<S, E> for Box<CollectionFilter> { #[must_root] pub enum CollectionTypeId { Static(Vec<JS<Element>>), - Live(JS<Node>, Box<CollectionFilter>) + Live(JS<Node>, Box<CollectionFilter+'static>) } #[deriving(Encodable)] @@ -59,7 +59,7 @@ impl HTMLCollection { impl HTMLCollection { pub fn create(window: JSRef<Window>, root: JSRef<Node>, - filter: Box<CollectionFilter>) -> Temporary<HTMLCollection> { + filter: Box<CollectionFilter+'static>) -> Temporary<HTMLCollection> { HTMLCollection::new(window, Live(JS::from_rooted(root), filter)) } |