macros: Remove backwards-compatibility variants introduced in the previous commit.
This commit is contained in:
parent
bcd42a26e3
commit
ae3a5b6725
18 changed files with 60 additions and 70 deletions
|
|
@ -164,7 +164,7 @@ impl TryFrom<Element> for Failure {
|
|||
if child.is("text", ns::SASL) {
|
||||
check_no_unknown_attributes!(child, "text", ["xml:lang"]);
|
||||
check_no_children!(child, "text");
|
||||
let lang = get_attr!(child, "xml:lang", default);
|
||||
let lang = get_attr!(child, "xml:lang", Default);
|
||||
if texts.insert(lang, child.text()).is_some() {
|
||||
return Err(Error::ParseError(
|
||||
"Text element present twice for the same xml:lang in failure element.",
|
||||
|
|
|
|||
Loading…
Reference in a new issue