fix merge
This commit is contained in:
1 parent
9e4a069f42
commit
f132a08f7d
1 file changed
+5
-10
@@ -73,22 +73,17 @@ fn build_node<'a>(
|
|||||||
for attr in &el.attributes {
|
for attr in &el.attributes {
|
||||||
match &attr.attr {
|
match &attr.attr {
|
||||||
ElementAttr::AttrText { .. } | ElementAttr::CustomAttrText { .. } => {
|
ElementAttr::AttrText { .. } | ElementAttr::CustomAttrText { .. } => {
|
||||||
let (name, value, span): (String, InterpertedIfmt, Span) = match &attr.attr
|
let (name, value, span): (String, IfmtInput, Span) = match &attr.attr {
|
||||||
{
|
|
||||||
ElementAttr::AttrText { name, value } => (
|
ElementAttr::AttrText { name, value } => (
|
||||||
name.to_string(),
|
name.to_string(),
|
||||||
InterpertedIfmt(
|
IfmtInput::from_str(&value.value())
|
||||||
IfmtInput::from_str(&value.value())
|
.map_err(|err| Error::ParseError(err))?,
|
||||||
.map_err(|err| Error::ParseError(err))?,
|
|
||||||
),
|
|
||||||
name.span(),
|
name.span(),
|
||||||
),
|
),
|
||||||
ElementAttr::CustomAttrText { name, value } => (
|
ElementAttr::CustomAttrText { name, value } => (
|
||||||
name.value(),
|
name.value(),
|
||||||
InterpertedIfmt(
|
IfmtInput::from_str(&value.value())
|
||||||
IfmtInput::from_str(&value.value())
|
.map_err(|err| Error::ParseError(err))?,
|
||||||
.map_err(|err| Error::ParseError(err))?,
|
|
||||||
),
|
|
||||||
name.span(),
|
name.span(),
|
||||||
),
|
),
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
|
|||||||
Reference in new issue
Block a user