mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 01:12:24 +00:00
xml: Rename XmlRoot to XmlRootTag
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
use rustical_xml::{de::XmlDocument, Unit, XmlDeserialize, XmlRoot};
|
||||
use rustical_xml::{de::XmlDocument, Unit, XmlDeserialize, XmlRootTag};
|
||||
|
||||
#[test]
|
||||
fn test_struct_tagged_enum() {
|
||||
#[derive(Debug, XmlDeserialize, XmlRoot, PartialEq)]
|
||||
#[derive(Debug, XmlDeserialize, XmlRootTag, PartialEq)]
|
||||
#[xml(root = b"propfind")]
|
||||
struct Propfind {
|
||||
prop: Prop,
|
||||
@@ -57,7 +57,7 @@ fn test_struct_tagged_enum() {
|
||||
|
||||
#[test]
|
||||
fn test_tagged_enum_complex() {
|
||||
#[derive(Debug, XmlDeserialize, XmlRoot, PartialEq)]
|
||||
#[derive(Debug, XmlDeserialize, XmlRootTag, PartialEq)]
|
||||
#[xml(root = b"propfind")]
|
||||
struct Propfind {
|
||||
prop: PropStruct,
|
||||
|
||||
Reference in New Issue
Block a user