From 4aae031f4484b7b39e2c58175230e22825a47648 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 25 Oct 2023 22:38:55 +0200 Subject: [PATCH] Bump instant-xml to 0.4 --- Cargo.toml | 2 +- src/contact/mod.rs | 2 +- src/domain/mod.rs | 2 +- src/host/mod.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4a53d2e..db32747 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ rustls = ["tokio-rustls", "rustls-native-certs"] async-trait = "0.1.52" celes = "2.1" chrono = { version = "0.4.23", features = ["serde"] } -instant-xml = { version = "0.3", features = ["chrono"] } +instant-xml = { version = "0.4", features = ["chrono"] } rustls-native-certs = { version = "0.6.3", optional = true } serde = { version = "1.0", features = ["derive"] } tokio = { version = "1.0", features = ["io-util", "net", "time"] } diff --git a/src/contact/mod.rs b/src/contact/mod.rs index a4752b6..a5e9fe1 100644 --- a/src/contact/mod.rs +++ b/src/contact/mod.rs @@ -301,7 +301,7 @@ impl<'xml> FromXml<'xml> for Status { return Err(Error::MissingValue(field)); } - *into = Some(match attr.value { + *into = Some(match attr.value.as_ref() { "clientDeleteProhibited" => Self::ClientDeleteProhibited, "serverDeleteProhibited" => Self::ServerDeleteProhibited, "clientTransferProhibited" => Self::ClientTransferProhibited, diff --git a/src/domain/mod.rs b/src/domain/mod.rs index 840e2f5..295bf83 100644 --- a/src/domain/mod.rs +++ b/src/domain/mod.rs @@ -315,7 +315,7 @@ impl<'xml> FromXml<'xml> for Status { return Err(Error::MissingValue(field)); } - *into = Some(match attr.value { + *into = Some(match attr.value.as_ref() { "clientDeleteProhibited" => Self::ClientDeleteProhibited, "serverDeleteProhibited" => Self::ServerDeleteProhibited, "clientHold" => Self::ClientHold, diff --git a/src/host/mod.rs b/src/host/mod.rs index 5fd2bc6..79cc9da 100644 --- a/src/host/mod.rs +++ b/src/host/mod.rs @@ -103,7 +103,7 @@ impl<'xml> FromXml<'xml> for Status { return Err(Error::MissingValue(field)); } - *into = Some(match attr.value { + *into = Some(match attr.value.as_ref() { "clientDeleteProhibited" => Self::ClientDeleteProhibited, "serverDeleteProhibited" => Self::ServerDeleteProhibited, "clientUpdateProhibited" => Self::ClientUpdateProhibited,