diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-01-28 13:48:28 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-01-28 13:48:28 +0100 |
commit | f8ac1777ff9abcfcad5cb7a58ce3d7fbf61cf060 (patch) | |
tree | d1f6673bad49d35e83636a205edca0afca89afb7 /components/script/dom/domtokenlist.rs | |
parent | cc2523eed5bdddd054ce6918e7d2d1d7d22d9286 (diff) | |
download | servo-f8ac1777ff9abcfcad5cb7a58ce3d7fbf61cf060.tar.gz servo-f8ac1777ff9abcfcad5cb7a58ce3d7fbf61cf060.zip |
Don't shadow lifetimes in script.
Diffstat (limited to 'components/script/dom/domtokenlist.rs')
-rw-r--r-- | components/script/dom/domtokenlist.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/domtokenlist.rs b/components/script/dom/domtokenlist.rs index ed61123d9a2..0ab2a40b81e 100644 --- a/components/script/dom/domtokenlist.rs +++ b/components/script/dom/domtokenlist.rs @@ -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), |