Skip to content

Commit d657c69

Browse files
committed
Use FullName in Element.
1 parent 2d3a567 commit d657c69

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

xml-schema/src/processor2.rs

+7-3
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ pub enum RecursiveComplexType<'input> {
103103
Element(
104104
usize,
105105
usize,
106-
Option<&'input str>,
107-
&'input str,
106+
FullName<'input>,
108107
Box<RecursiveComplexType<'input>>,
109108
),
110109
GroupRef(usize, usize, FullName<'input>),
@@ -718,7 +717,12 @@ impl<'ast, 'input: 'ast> Processor<'ast, 'input> {
718717
name, t1, t2
719718
),
720719
};
721-
RecursiveComplexType::Element(min_occurs, max_occurs, namespace, name, Box::new(t))
720+
RecursiveComplexType::Element(
721+
min_occurs,
722+
max_occurs,
723+
FullName::new(namespace, name),
724+
Box::new(t),
725+
)
722726
}
723727
}
724728
}

0 commit comments

Comments
 (0)