diff --git a/src/annotate_attributes.rs b/src/annotate_attributes.rs index 8e5e560..0072084 100644 --- a/src/annotate_attributes.rs +++ b/src/annotate_attributes.rs @@ -150,7 +150,7 @@ impl Processor { .collect(), variant: variant_str, }; - let mut existing = self.attributes.entry(attr_key).or_default(); + let existing = self.attributes.entry(attr_key).or_default(); if existing.default.is_empty() { existing.default = descriptions.default; } else if !descriptions.default.is_empty() { diff --git a/src/interface_index.rs b/src/interface_index.rs index 49bdadf..ffbdd48 100644 --- a/src/interface_index.rs +++ b/src/interface_index.rs @@ -76,7 +76,7 @@ impl Processor { continue; } let name = window[1].text_content(); - let mut info = self.interfaces.entry(name).or_default(); + let info = self.interfaces.entry(name).or_default(); if is_partial { if let Some(id) = window[1].get_attribute(&ID) { info.partials.push(id); diff --git a/src/tag_omission.rs b/src/tag_omission.rs index 5f5a97b..197ed12 100644 --- a/src/tag_omission.rs +++ b/src/tag_omission.rs @@ -75,7 +75,7 @@ impl Processor { for dd in dom_utils::dt_descriptions(&dt) { dom_utils::scan_dom(&dd, &mut |n| { if n.is_html_element(&local_name!("code")) { - let mut info = self.elements.entry(n.text_content()).or_default(); + let info = self.elements.entry(n.text_content()).or_default(); info.is_void_element = true; } });