aboutsummaryrefslogtreecommitdiffstats
path: root/parser/src/simplify.rs
diff options
context:
space:
mode:
authorPhilipp A2020-09-06 22:30:19 +0200
committerPhilipp A2020-09-07 00:28:39 +0200
commitc80468a8f917079189c8cd111556f9752085e3e4 (patch)
tree62408e2ea52c38fbdf6f6d213cfa8ddb4a0e8131 /parser/src/simplify.rs
parent4de128cf7924ad3c0c81dfc52701ace16b010749 (diff)
downloadrust-rst-c80468a8f917079189c8cd111556f9752085e3e4.tar.bz2
Don’t parse literal content
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) {