aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct/html_text.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-01 10:17:25 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-01 10:17:25 +0200
commit82221ba13d2a4ccd119f280aaa3cea9ca2c8fdaf (patch)
tree5a9fe3ad27ab001e613d6e50c1dd67041862ce3a /src/construct/html_text.rs
parent0eeff9148e327183e532752f46421a75506dd7a6 (diff)
downloadmarkdown-rs-82221ba13d2a4ccd119f280aaa3cea9ca2c8fdaf.tar.gz
markdown-rs-82221ba13d2a4ccd119f280aaa3cea9ca2c8fdaf.tar.bz2
markdown-rs-82221ba13d2a4ccd119f280aaa3cea9ca2c8fdaf.zip
Refactor some states
Diffstat (limited to 'src/construct/html_text.rs')
-rw-r--r--src/construct/html_text.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/construct/html_text.rs b/src/construct/html_text.rs
index 51beda5..8a44c29 100644
--- a/src/construct/html_text.rs
+++ b/src/construct/html_text.rs
@@ -169,7 +169,7 @@ fn comment_open_inside(tokenizer: &mut Tokenizer) -> State {
/// [html_flow]: crate::construct::html_flow
fn comment_start(tokenizer: &mut Tokenizer) -> State {
match tokenizer.current {
- None | Some(b'>') => State::Nok,
+ Some(b'>') => State::Nok,
Some(b'-') => {
tokenizer.consume();
State::Fn(Box::new(comment_start_dash))
@@ -193,7 +193,7 @@ fn comment_start(tokenizer: &mut Tokenizer) -> State {
/// [html_flow]: crate::construct::html_flow
fn comment_start_dash(tokenizer: &mut Tokenizer) -> State {
match tokenizer.current {
- None | Some(b'>') => State::Nok,
+ Some(b'>') => State::Nok,
_ => comment(tokenizer),
}
}