style: cargo clippy

This commit is contained in:
PoiScript 2024-03-06 15:44:31 +08:00
parent f65e240e92
commit b03233ca34
No known key found for this signature in database
GPG key ID: 22C2B1249D99985E

View file

@ -135,7 +135,7 @@ fn headline_stars(input: Input) -> IResult<Input, Input, ()> {
let level = bytes.iter().take_while(|&&c| c == b'*').count();
if level == 0 {
return Err(nom::Err::Error(()));
Err(nom::Err::Error(()))
}
// headline stars must be followed by space
else if matches!(bytes.get(level), Some(b' ')) {