From 0f052ea125ab6722f84cace9d05aa39d82b7d7d0 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 21 Nov 2022 12:25:35 -0800 Subject: [PATCH] Bump quick-xml to 0.26 --- Cargo.toml | 2 +- src/message/poll.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3c7dae1..75bb371 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ default = ["tokio-rustls"] async-trait = "0.1.52" celes = "2.1" chrono = { version = "0.4.23", features = ["serde"] } -quick-xml = { version = "0.23", features = [ "serialize" ] } +quick-xml = { version = "0.26", features = [ "serialize" ] } serde = { version = "1.0", features = ["derive"] } tokio = { version = "1.0", features = [ "full" ] } tokio-rustls = { version = "0.23", optional = true } diff --git a/src/message/poll.rs b/src/message/poll.rs index 8747765..ed87ae7 100644 --- a/src/message/poll.rs +++ b/src/message/poll.rs @@ -33,10 +33,10 @@ impl Default for MessagePoll<'static> { #[derive(Deserialize, Debug)] pub enum MessageData { /// Data under the <domain:trnData> tag - #[serde(rename = "domain:trnData")] + #[serde(rename = "trnData")] DomainTransfer(DomainTransferResponseData), /// Data under the <host:infData> tag - #[serde(rename = "host:infData")] + #[serde(rename = "infData")] HostInfo(HostInfoResponseData), } @@ -44,7 +44,7 @@ pub enum MessageData { #[derive(Deserialize, Debug)] pub struct MessagePollResponse { /// Data under the <trnData> tag - #[serde(alias = "trnData", alias = "infData")] + #[serde(rename = "trnData", alias = "infData")] pub message_data: MessageData, }