From 77d8c5e029f5f4b66ae1f01ac93c008c22622dda Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Tue, 21 Mar 2023 13:38:23 -0400 Subject: [PATCH] Mark the plain list functions as allow dead code. --- src/parser/plain_list.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/parser/plain_list.rs b/src/parser/plain_list.rs index 2d61713..a00c29f 100644 --- a/src/parser/plain_list.rs +++ b/src/parser/plain_list.rs @@ -5,7 +5,6 @@ use nom::character::complete::digit1; use nom::character::complete::line_ending; use nom::character::complete::one_of; use nom::character::complete::space0; -use nom::combinator::consumed; use nom::combinator::eof; use nom::combinator::map; use nom::combinator::not; @@ -13,7 +12,6 @@ use nom::combinator::opt; use nom::combinator::peek; use nom::combinator::recognize; use nom::combinator::verify; -use nom::multi::many0_count; use nom::multi::many1; use nom::sequence::tuple; @@ -21,7 +19,6 @@ use super::combinator::context_many_till; use super::error::CustomError; use super::error::MyError; use super::error::Res; -use super::paragraph::paragraph_end; use super::parser_context::ContextElement; use super::parser_with_context::parser_with_context; use super::text::blank_line; @@ -34,11 +31,13 @@ use super::token::TextElement; use super::token::Token; use super::Context; +#[allow(dead_code)] pub fn plain_list<'r, 's>(context: Context<'r, 's>, i: &'s str) -> Res<&'s str, PlainList<'s>> { // todo todo!() } +#[allow(dead_code)] pub fn item<'r, 's>(context: Context<'r, 's>, i: &'s str) -> Res<&'s str, ListItem<'s>> { let (remaining, leading_whitespace) = space0(i)?; let indent_level = leading_whitespace.len();