Add FromXml impl for ()
This commit is contained in:
parent
12402fb381
commit
0ea0eca53f
|
@ -522,3 +522,15 @@ impl<'xml> FromXml<'xml> for DateTime<Utc> {
|
|||
|
||||
const KIND: Kind<'static> = Kind::Scalar;
|
||||
}
|
||||
|
||||
impl<'xml> FromXml<'xml> for () {
|
||||
fn deserialize<'cx>(
|
||||
_: &mut Deserializer<'cx, 'xml>,
|
||||
into: &mut Option<Self>,
|
||||
) -> Result<(), Error> {
|
||||
*into = Some(());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
const KIND: Kind<'static> = Kind::Scalar;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue