Fix warnings.

This commit is contained in:
Tom Alexander
2023-04-21 23:55:18 -04:00
parent e97cf6630f
commit 0b989b53a6
13 changed files with 16 additions and 16 deletions

View File

@@ -18,7 +18,7 @@ use super::paragraph::paragraph;
use super::plain_list::plain_list;
use super::util::get_consumed;
use super::util::maybe_consume_trailing_whitespace_if_not_exiting;
use super::util::start_of_line;
use super::Context;
use crate::error::Res;
use crate::parser::parser_with_context::parser_with_context;
@@ -41,13 +41,13 @@ pub fn paragraph_element<'r, 's>(
) -> Res<&'s str, Element<'s>> {
let paragraph_matcher = parser_with_context!(paragraph)(context);
let keyword_matcher = parser_with_context!(keyword)(context);
let (remaining, affiliated_keywords) = many0(keyword_matcher)(input)?;
let (remaining, _affiliated_keywords) = many0(keyword_matcher)(input)?;
let (remaining, element) = map(paragraph_matcher, Element::Paragraph)(remaining)?;
let (remaining, _trailing_ws) =
maybe_consume_trailing_whitespace_if_not_exiting(context, remaining)?;
let source = get_consumed(input, remaining);
let _source = get_consumed(input, remaining);
Ok((remaining, element))
}
@@ -102,7 +102,7 @@ pub fn non_paragraph_element<'r, 's>(
let (remaining, _trailing_ws) =
maybe_consume_trailing_whitespace_if_not_exiting(context, remaining)?;
let source = get_consumed(input, remaining);
let _source = get_consumed(input, remaining);
Ok((remaining, element))
}