Skip to content

Commit e311b2a

Browse files
committed
fix clippy warning
1 parent 0113749 commit e311b2a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

microdom/src/parser_html_xml.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ pub fn native_html_parser(html: &str, root: NodeId, tree: &mut DomTree) {
8282
}
8383

8484
pos = end_idx;
85-
if pos + 2 + p_len < len {
86-
if let Some(rel) = memchr(b'>', &src[pos..]) {
87-
pos += rel + 1;
88-
}
85+
if pos + 2 + p_len < len
86+
&& let Some(rel) = memchr(b'>', &src[pos..])
87+
{
88+
pos += rel + 1;
8989
}
9090
stack.pop();
9191
continue;

0 commit comments

Comments
 (0)