diff options
author | JJ | 2023-01-07 20:02:34 +0000 |
---|---|---|
committer | JJ | 2023-01-07 20:02:34 +0000 |
commit | 14a24ee8b22633d8e9e3e205f7f318127b64e539 (patch) | |
tree | eaa30cda04e5998cae9f40018017e1afdf4cb2b0 | |
parent | a2e04ff18ad27be4dc1c66079941baaec79e003f (diff) |
parse_wiki_text: fix compiler warnings
-rw-r--r-- | parse_wiki_text/src/link.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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, }); } |