diff options
Diffstat (limited to 'components/script/dom/element.rs')
-rw-r--r-- | components/script/dom/element.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs index c008230cd88..e2b31704871 100644 --- a/components/script/dom/element.rs +++ b/components/script/dom/element.rs @@ -240,7 +240,7 @@ impl FromStr for AdjacentPosition { type Err = Error; fn from_str(position: &str) -> Result<Self, Self::Err> { - match_ignore_ascii_case! { &*position, + match_ignore_ascii_case! { position, "beforebegin" => Ok(AdjacentPosition::BeforeBegin), "afterbegin" => Ok(AdjacentPosition::AfterBegin), "beforeend" => Ok(AdjacentPosition::BeforeEnd), @@ -3346,7 +3346,7 @@ impl<'a> SelectorsElement for DomRoot<Element> { self.id_attribute .borrow() .as_ref() - .map_or(false, |atom| case_sensitivity.eq_atom(&*id, atom)) + .map_or(false, |atom| case_sensitivity.eq_atom(id, atom)) } fn is_part(&self, _name: &AtomIdent) -> bool { |