mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #6617 - frewsxcv:fixme-ufcs, r=metajack
Complete FIXMEs related to UFCS <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6617) <!-- Reviewable:end -->
This commit is contained in:
commit
6a728712f9
2 changed files with 4 additions and 28 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue