diff options
author | Martin Fischer <martin@push-f.com> | 2023-08-16 11:12:46 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-08-19 13:41:55 +0200 |
commit | 78c2066021deda483a4f0a1bb575543d98d27dca (patch) | |
tree | 29f338a4d9dafc5073913fbfbf91b03c9dd82db0 /src/emitter.rs | |
parent | 0c87a9ec25a45efc9b6b5ab7883cd19ded483909 (diff) |
chore: clarify variable names
Diffstat (limited to 'src/emitter.rs')
-rw-r--r-- | src/emitter.rs | 14 |
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); } } _ => { |