style: replace match{state=} with state=if{}

This commit is contained in:
DarkCat09 2024-11-21 18:05:37 +04:00
parent 3643ba0dfd
commit 959581d0b3
Signed by: DarkCat09
GPG key ID: BD3CE9B65916CD82

View file

@ -241,14 +241,11 @@ pub fn compile_markdown(
_ => {} _ => {}
} }
match state { state = if state == State::Metadata(false) {
State::Metadata(false) => { State::Start
state = State::Start; } else {
} State::Paragraph
_ => { };
state = State::Paragraph;
}
}
} }
Text(text) => { Text(text) => {