Upgrade to instant-xml 0.5

This commit is contained in:
Dirkjan Ochtman 2024-06-07 14:55:17 +02:00
parent 0dd7b21922
commit 9bc341d14b
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ rustls = ["tokio-rustls", "rustls-pki-types", "rustls-native-certs"]
async-trait = "0.1.52"
celes = "2.1"
chrono = { version = "0.4.23", features = ["serde"] }
instant-xml = { version = "0.4", features = ["chrono"] }
instant-xml = { version = "0.5", features = ["chrono"] }
rustls-native-certs = { version = "0.7", optional = true }
rustls-pki-types = { version = "1", optional = true }
serde = { version = "1.0", features = ["derive"] }

View File

@ -38,10 +38,10 @@ impl<'xml> FromXml<'xml> for Country {
fn deserialize<'cx>(
into: &mut Self::Accumulator,
_: &'static str,
field: &'static str,
deserializer: &mut instant_xml::Deserializer<'cx, 'xml>,
) -> Result<(), instant_xml::Error> {
from_xml_str(deserializer, into)
from_xml_str(into, field, deserializer)
}
type Accumulator = Option<Self>;