aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-07-14 09:24:53 +0900
committerCorey Farwell <coreyf@rwell.org>2015-07-14 09:24:53 +0900
commit78d2fe6e9b08e41f23a9767b29317896ddb90689 (patch)
tree4f2ef754fe722977052da64e6c6274380dd745b8 /components/script/dom/node.rs
parent12195a5c4ac08f1e6eeaf8888c279fea8e5be48a (diff)
downloadservo-78d2fe6e9b08e41f23a9767b29317896ddb90689.tar.gz
servo-78d2fe6e9b08e41f23a9767b29317896ddb90689.zip
Complete FIXMEs related to UFCS
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r--components/script/dom/node.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index 21c427d07b1..7c3b6b2906c 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -2606,13 +2606,7 @@ impl<'a> ::selectors::Node<&'a Element> for &'a Node {
}
fn is_document(&self) -> bool {
- // FIXME(zwarich): Remove this when UFCS lands and there is a better way
- // of disambiguating methods.
- fn is_document<'a, T: DocumentDerived>(this: &T) -> bool {
- this.is_document()
- }
-
- is_document(*self)
+ DocumentDerived::is_document(*self)
}
fn as_element(&self) -> Option<&'a Element> {