style: replace match{state=} with state=if{}
This commit is contained in:
parent
3643ba0dfd
commit
959581d0b3
1 changed files with 5 additions and 8 deletions
|
@ -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) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue