mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Refine a lifetime parameter on TElement's get_local_name
This commit is contained in:
parent
e894499c17
commit
ccc5d976f7
3 changed files with 6 additions and 6 deletions
|
@ -965,7 +965,7 @@ impl<'a> style::TElement<'a> for JSRef<'a, Element> {
|
|||
_ => None,
|
||||
}
|
||||
}
|
||||
fn get_local_name<'b>(&'b self) -> &'b Atom {
|
||||
fn get_local_name(&self) -> &'a Atom {
|
||||
// FIXME(zwarich): Remove this when UFCS lands and there is a better way
|
||||
// of disambiguating methods.
|
||||
fn get_local_name<'a, T: ElementHelpers<'a>>(this: T) -> &'a Atom {
|
||||
|
@ -974,7 +974,7 @@ impl<'a> style::TElement<'a> for JSRef<'a, Element> {
|
|||
|
||||
get_local_name(*self)
|
||||
}
|
||||
fn get_namespace<'b>(&'b self) -> &'b Namespace {
|
||||
fn get_namespace(&self) -> &'a Namespace {
|
||||
// FIXME(zwarich): Remove this when UFCS lands and there is a better way
|
||||
// of disambiguating methods.
|
||||
fn get_namespace<'a, T: ElementHelpers<'a>>(this: T) -> &'a Namespace {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue