From 14a24ee8b22633d8e9e3e205f7f318127b64e539 Mon Sep 17 00:00:00 2001 From: JJ Date: Sat, 7 Jan 2023 12:02:34 -0800 Subject: parse_wiki_text: fix compiler warnings --- parse_wiki_text/src/link.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'parse_wiki_text/src') diff --git a/parse_wiki_text/src/link.rs b/parse_wiki_text/src/link.rs index 24b3ba5..38bbd3f 100644 --- a/parse_wiki_text/src/link.rs +++ b/parse_wiki_text/src/link.rs @@ -139,14 +139,14 @@ fn parse_end( end: trail_end_position, ordinal: vec![], start: state.scan_position, - target: state.wiki_text[target_start_position..target_end_position].trim_right(), + target: state.wiki_text[target_start_position..target_end_position].trim_end(), }); } Some(crate::Namespace::File) => { state.nodes.push(crate::Node::Image { end: trail_end_position, start: state.scan_position, - target: state.wiki_text[target_start_position..target_end_position].trim_right(), + target: state.wiki_text[target_start_position..target_end_position].trim_end(), text: vec![], }); } @@ -177,7 +177,7 @@ fn parse_end( state.nodes.push(crate::Node::Link { end: trail_end_position, start: state.scan_position, - target: &state.wiki_text[target_start_position..target_end_position].trim_right(), + target: &state.wiki_text[target_start_position..target_end_position].trim_end(), text, }); } -- cgit v1.2.3-70-g09d2