style: run cargo clippy

This commit is contained in:
PoiScript 2023-11-17 14:18:25 +08:00
parent e924359df6
commit c4d9aa4c51
No known key found for this signature in database
GPG key ID: 22C2B1249D99985E
2 changed files with 2 additions and 2 deletions

View file

@ -220,7 +220,7 @@ fn list_item_content_node(input: Input, indent: usize) -> IResult<Input, (bool,
match get_line_indent(input.as_str()) {
Some(next_indent) => {
if next_indent <= indent {
let (input, head) = previous_blank_line.unwrap_or_else(|| (input, head));
let (input, head) = previous_blank_line.unwrap_or((input, head));
if !head.is_empty() {
children.extend(paragraph_nodes(head)?);
}