Placate clippy

This commit is contained in:
2023-12-25 00:23:43 +01:00
parent 0cce8a2045
commit 898f8dce25
4 changed files with 9 additions and 4 deletions

View File

@@ -53,7 +53,9 @@ fn number_ways(line: &[u8], groups: &[u8]) -> u64 {
+ cur[(groups.len() - 1) * group_stride + groups[groups.len() - 1] as usize]
}
fn parse_lines(i: &[u8]) -> IResult<&[u8], Vec<(&[u8], Vec<u8>)>> {
type LineAndGroups<'a> = Vec<(&'a [u8], Vec<u8>)>;
fn parse_lines(i: &[u8]) -> IResult<&[u8], LineAndGroups> {
many1(terminated(
separated_pair(
take_until(" "),