mirror of
https://github.com/lennart-k/rustical.git
synced 2026-01-31 00:48:15 +00:00
xml: namespace serialization
This commit is contained in:
@@ -54,11 +54,7 @@ impl<T: XmlRootTag + XmlDeserialize> XmlDocument for T {
|
||||
// Wrong tag
|
||||
(_, _, name) if name.as_ref() != Self::root_tag() => false,
|
||||
// Wrong namespace
|
||||
(Some(root_ns), ns, _)
|
||||
if &ResolveResult::Bound(Namespace(root_ns)) != ns =>
|
||||
{
|
||||
false
|
||||
}
|
||||
(Some(root_ns), ns, _) if &ResolveResult::Bound(root_ns) != ns => false,
|
||||
_ => true,
|
||||
};
|
||||
if !matches {
|
||||
|
||||
Reference in New Issue
Block a user