Skip to content

Commit

Permalink
Pass reader.decoder() instead of reader to decode_and_unescape_value …
Browse files Browse the repository at this point in the history
…function as required in quick_xml 0.35 API
  • Loading branch information
marco-c committed Sep 25, 2024
1 parent 7f8570c commit 706ff34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ fn get_xml_attribute<R: BufRead>(
for a in event.attributes() {
let a = a?;
if a.key.into_inner() == name.as_bytes() {
return Ok(a.decode_and_unescape_value(reader)?.into_owned());
return Ok(a.decode_and_unescape_value(reader.decoder())?.into_owned());
}
}
Err(ParserError::InvalidRecord(format!(
Expand Down

0 comments on commit 706ff34

Please sign in to comment.