aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct/heading_setext.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-22 17:58:11 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-22 17:58:11 +0200
commite7b3761c8cd6f0f902dd9927e4fbf2589465ed57 (patch)
treef735bfeb8e09e114247403742879606ed6594e37 /src/construct/heading_setext.rs
parent1cf2e1bb97e60baa83de6f3320f2e0ec2e6707b9 (diff)
downloadmarkdown-rs-e7b3761c8cd6f0f902dd9927e4fbf2589465ed57.tar.gz
markdown-rs-e7b3761c8cd6f0f902dd9927e4fbf2589465ed57.tar.bz2
markdown-rs-e7b3761c8cd6f0f902dd9927e4fbf2589465ed57.zip
Refactor to not use `pub` when not needed
Diffstat (limited to '')
-rw-r--r--src/construct/heading_setext.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/construct/heading_setext.rs b/src/construct/heading_setext.rs
index 91e494d..06ce481 100644
--- a/src/construct/heading_setext.rs
+++ b/src/construct/heading_setext.rs
@@ -124,7 +124,7 @@ pub fn start(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
/// |alpha
/// ==
/// ```
-pub fn before(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
+fn before(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
match code {
Code::None | Code::CarriageReturnLineFeed | Code::Char('\n' | '\r') => {
unreachable!("expected non-eol/eof");