aboutsummaryrefslogtreecommitdiff
path: root/src/util.rs
blob: fd1f76726b0fd5097830c5cc35aba0c077959c4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
macro_rules! impl_from_deserializer_err_wrapped {
    ($err: ident) => {
        impl From<::xml_stinks::deserializer::Error<::std::convert::Infallible>> for $err
        {
            fn from(
                err: ::xml_stinks::deserializer::Error<::std::convert::Infallible>,
            ) -> Self
            {
                Self::DeserializationFailed(err.into())
            }
        }
    };
}

pub(crate) use impl_from_deserializer_err_wrapped;