move stream_start out of places
This commit is contained in:
parent
35be5a4323
commit
7b7f2866fc
7 changed files with 46 additions and 125 deletions
|
|
@ -98,8 +98,8 @@ impl ParserSink {
|
|||
|
||||
if self.stack.is_empty() {
|
||||
let attrs = HashMap::from_iter(
|
||||
el.attrs()
|
||||
.map(|(name, value)| (name.to_owned(), value.to_owned()))
|
||||
tag.attrs.iter()
|
||||
.map(|attr| (attr.name.local.as_ref().to_owned(), attr.value.as_ref().to_owned()))
|
||||
);
|
||||
self.push_queue(Packet::StreamStart(attrs));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue