diff options
author | bors-servo <release+servo@mozilla.com> | 2014-02-16 06:02:05 -0500 |
---|---|---|
committer | bors-servo <release+servo@mozilla.com> | 2014-02-16 06:02:05 -0500 |
commit | 41f55059a80156408368e375c2118066798958b9 (patch) | |
tree | 959f1849a8498ac11133c65dd3c1ddee2ed2e02c /src/components/script/html/hubbub_html_parser.rs | |
parent | a0b55b4c6cfacf3c9d59a07c8ee756c0dffad7f9 (diff) | |
parent | f5561975671807492d81a11d0bab2567350309f0 (diff) | |
download | servo-41f55059a80156408368e375c2118066798958b9.tar.gz servo-41f55059a80156408368e375c2118066798958b9.zip |
auto merge of #1703 : Ms2ger/servo/strings-cleanup, r=jdm
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r-- | src/components/script/html/hubbub_html_parser.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs index ac50e9cfc34..1079e5986ef 100644 --- a/src/components/script/html/hubbub_html_parser.rs +++ b/src/components/script/html/hubbub_html_parser.rs @@ -27,7 +27,6 @@ use std::cast; use std::cell::RefCell; use std::comm::{Port, SharedChan}; use std::from_str::FromStr; -use std::str::eq_slice; use std::str; use style::Stylesheet; @@ -37,7 +36,7 @@ macro_rules! handle_element( $string: expr, $ctor: ident $(, $arg:expr )*) => ( - if eq_slice($localName, $string) { + if $string == $localName { return $ctor::new($localName, $document $(, $arg)*); } ) |