From 706ff34aa1964dfaa8646c1d7bdd9e2749ab882f Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Wed, 25 Sep 2024 11:09:01 +0200 Subject: [PATCH] Pass reader.decoder() instead of reader to decode_and_unescape_value function as required in quick_xml 0.35 API --- src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.rs b/src/parser.rs index 09ebdef6f..b757e45c9 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -561,7 +561,7 @@ fn get_xml_attribute( 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!(