diff options
author | Josh Matthews <josh@joshmatthews.net> | 2015-01-15 13:26:44 -0500 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2015-01-28 10:16:49 +1000 |
commit | 95fc29fa0db21959df99d81cdbb9561226321d2f (patch) | |
tree | a48e171165ec155062ef13c550b2c0f72d127425 /components/style/node.rs | |
parent | ff8cbff81016c157373c1675f3eee69dd70ae544 (diff) | |
download | servo-95fc29fa0db21959df99d81cdbb9561226321d2f.tar.gz servo-95fc29fa0db21959df99d81cdbb9561226321d2f.zip |
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
Diffstat (limited to 'components/style/node.rs')
-rw-r--r-- | components/style/node.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/node.rs b/components/style/node.rs index 48afb072c43..8bf26b932b3 100644 --- a/components/style/node.rs +++ b/components/style/node.rs @@ -20,7 +20,7 @@ pub trait TNode<'a, E: TElement<'a>> : Clone + Copy { fn is_document(self) -> bool; fn is_element(self) -> bool; fn as_element(self) -> E; - fn match_attr(self, attr: &AttrSelector, test: |&str| -> bool) -> bool; + fn match_attr<F>(self, attr: &AttrSelector, test: F) -> bool where F: Fn(&str) -> bool; fn is_html_element_in_html_document(self) -> bool; fn has_changed(self) -> bool; @@ -55,7 +55,7 @@ pub trait TElement<'a> : Copy { // really messy, since there is a `JSRef` and a `RefCell` involved. Maybe // in the future when we have associated types and/or a more convenient // JS GC story... --pcwalton - fn each_class(self, callback: |&Atom|); + fn each_class<F>(self, callback: F) where F: FnMut(&Atom); } pub trait TElementAttributes : Copy { |