xml: Rename XmlRoot to XmlRootTag

This commit is contained in:
Lennart
2024-12-23 12:36:46 +01:00
parent b52a9f4fbe
commit 6721e876fa
7 changed files with 25 additions and 25 deletions

View File

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