diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-11-10 08:58:57 -0500 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-11-10 08:58:57 -0500 |
commit | 55477eb618fb0cbdd9da7b2424ebd20499ffd424 (patch) | |
tree | 3fe61b31100b0b519b4767fda9bac1aecd70d1e9 /components/script/dom/element.rs | |
parent | 81f094b129f4df5f8287eb6613108b673211a546 (diff) | |
download | servo-55477eb618fb0cbdd9da7b2424ebd20499ffd424.tar.gz servo-55477eb618fb0cbdd9da7b2424ebd20499ffd424.zip |
Prefer Atoms over strs for comparison
Diffstat (limited to 'components/script/dom/element.rs')
-rw-r--r-- | components/script/dom/element.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs index 829383a4a62..6a59c74529b 100644 --- a/components/script/dom/element.rs +++ b/components/script/dom/element.rs @@ -639,12 +639,12 @@ impl Element { if self.namespace != ns!(HTML) { return false } - match &*self.local_name { + match self.local_name { /* List of void elements from https://html.spec.whatwg.org/multipage/#html-fragment-serialisation-algorithm */ - "area" | "base" | "basefont" | "bgsound" | "br" | "col" | "embed" | - "frame" | "hr" | "img" | "input" | "keygen" | "link" | "menuitem" | - "meta" | "param" | "source" | "track" | "wbr" => true, + atom!(area) | atom!(base) | atom!(basefont) | atom!(bgsound) | atom!(br) | atom!(col) | atom!(embed) | + atom!(frame) | atom!(hr) | atom!(img) | atom!(input) | atom!(keygen) | atom!(link) | atom!(menuitem) | + atom!(meta) | atom!(param) | atom!(source) | atom!(track) | atom!(wbr) => true, _ => false } } |