summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/emitter.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/emitter.rs b/src/emitter.rs
index 8856589..9dfb363 100644
--- a/src/emitter.rs
+++ b/src/emitter.rs
@@ -207,20 +207,20 @@ impl<O> DefaultEmitter<O> {
where
O: Clone,
{
- if let Some((k, v)) = self.current_attribute.take() {
+ if let Some((name, map_val)) = self.current_attribute.take() {
match self.current_token {
- Some(Token::StartTag(ref mut tag)) => match tag.attributes.inner.entry(k) {
+ Some(Token::StartTag(ref mut tag)) => match tag.attributes.inner.entry(name) {
Entry::Vacant(vacant) => {
- vacant.insert(v);
+ vacant.insert(map_val);
}
Entry::Occupied(_) => {
- self.push_error(Error::DuplicateAttribute, v.name_span);
+ self.push_error(Error::DuplicateAttribute, map_val.name_span);
}
},
Some(Token::EndTag(_)) => {
- self.attr_in_end_tag_span = Some(v.name_span.clone());
- if !self.seen_attributes.insert(k) {
- self.push_error(Error::DuplicateAttribute, v.name_span);
+ self.attr_in_end_tag_span = Some(map_val.name_span.clone());
+ if !self.seen_attributes.insert(name) {
+ self.push_error(Error::DuplicateAttribute, map_val.name_span);
}
}
_ => {