Bump instant-xml to 0.4

This commit is contained in:
Dirkjan Ochtman 2023-10-25 22:38:55 +02:00
parent d590eb6a6a
commit 4aae031f44
4 changed files with 4 additions and 4 deletions

View File

@ -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"] }

View File

@ -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,

View File

@ -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,

View File

@ -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,