appease clippy

This commit is contained in:
Folkert 2020-11-09 02:02:20 +01:00
parent b044a0b8a8
commit 65c1e0e5b1

View file

@ -285,13 +285,13 @@ pub fn spaces_exactly<'a>(spaces_expected: u16) -> impl Parser<'a, ()> {
}
if spaces_seen == 0 {
return Err(unexpected_eof(0, state.attempting, state));
Err(unexpected_eof(0, state.attempting, state))
} else {
return Err(unexpected(
Err(unexpected(
spaces_seen.into(),
state.clone(),
state.attempting,
));
))
}
}
}