From e7b3761c8cd6f0f902dd9927e4fbf2589465ed57 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 22 Jun 2022 17:58:11 +0200 Subject: Refactor to not use `pub` when not needed --- src/construct/paragraph.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/construct/paragraph.rs') diff --git a/src/construct/paragraph.rs b/src/construct/paragraph.rs index af5d85d..13bd5aa 100644 --- a/src/construct/paragraph.rs +++ b/src/construct/paragraph.rs @@ -143,7 +143,7 @@ fn interrupt_start(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult { /// alpha /// | /// ``` -pub fn interrupt_indent(_tokenizer: &mut Tokenizer, code: Code) -> StateFnResult { +fn interrupt_indent(_tokenizer: &mut Tokenizer, code: Code) -> StateFnResult { (State::Ok, Some(vec![code])) } @@ -153,7 +153,7 @@ pub fn interrupt_indent(_tokenizer: &mut Tokenizer, code: Code) -> StateFnResult /// alpha /// |
/// ``` -pub fn interrupt_cont(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult { +fn interrupt_cont(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult { tokenizer.attempt_n( vec![ Box::new(blank_line), -- cgit