mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Don't shadow lifetimes in script.
This commit is contained in:
parent
cc2523eed5
commit
f8ac1777ff
29 changed files with 30 additions and 30 deletions
|
@ -44,7 +44,7 @@ impl DOMTokenList {
|
|||
|
||||
trait PrivateDOMTokenListHelpers {
|
||||
fn attribute(self) -> Option<Temporary<Attr>>;
|
||||
fn check_token_exceptions<'a>(self, token: &'a str) -> Fallible<Atom>;
|
||||
fn check_token_exceptions(self, token: &str) -> Fallible<Atom>;
|
||||
}
|
||||
|
||||
impl<'a> PrivateDOMTokenListHelpers for JSRef<'a, DOMTokenList> {
|
||||
|
@ -53,7 +53,7 @@ impl<'a> PrivateDOMTokenListHelpers for JSRef<'a, DOMTokenList> {
|
|||
element.r().get_attribute(ns!(""), &self.local_name)
|
||||
}
|
||||
|
||||
fn check_token_exceptions<'a>(self, token: &'a str) -> Fallible<Atom> {
|
||||
fn check_token_exceptions(self, token: &str) -> Fallible<Atom> {
|
||||
match token {
|
||||
"" => Err(Syntax),
|
||||
slice if slice.find(HTML_SPACE_CHARACTERS).is_some() => Err(InvalidCharacter),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue