aboutsummaryrefslogtreecommitdiffstats
path: root/parser/src/simplify.rs
diff options
context:
space:
mode:
Diffstat (limited to 'parser/src/simplify.rs')
-rw-r--r--parser/src/simplify.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser/src/simplify.rs b/parser/src/simplify.rs
index 7974991..4c254af 100644
--- a/parser/src/simplify.rs
+++ b/parser/src/simplify.rs
@@ -325,7 +325,7 @@ impl ResolvableRefs for c::TextOrInlineElement {
String(_) => {},
Emphasis(e) => sub_pop(&**e, refs),
Strong(e) => sub_pop(&**e, refs),
- Literal(e) => sub_pop(&**e, refs),
+ Literal(_) => {},
Reference(e) => sub_pop(&**e, refs),
FootnoteReference(e) => sub_pop(&**e, refs),
CitationReference(e) => sub_pop(&**e, refs),
@@ -352,7 +352,7 @@ impl ResolvableRefs for c::TextOrInlineElement {
String(e) => String(e),
Emphasis(e) => sub_res(*e, refs).into(),
Strong(e) => sub_res(*e, refs).into(),
- Literal(e) => sub_res(*e, refs).into(),
+ Literal(e) => Literal(e),
Reference(mut e) => {
if e.extra().refuri.is_none() {
if let Some(uri) = refs.target_url(&e.extra().refname) {