Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Jul 28, 2022
1 parent 9df48cd commit eb70b0e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/parsing/parsable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ impl sealed::Sealed for Rfc2822 {
.flat_map(|year| if year >= 1900 { Some(year) } else { None })
.and_then(|item| item.consume_value(|value| parsed.set_year(value as _)))
.ok_or(InvalidComponent("year"))?;
let input = fws(input).ok_or(InvalidLiteral)?.into_inner();
input
fws(input).ok_or(InvalidLiteral)?.into_inner()
}
None => {
let input = exactly_n_digits::<u32, 2>(input)
Expand All @@ -187,8 +186,7 @@ impl sealed::Sealed for Rfc2822 {
.consume_value(|value| parsed.set_year(value))
})
.ok_or(InvalidComponent("year"))?;
let input = cfws(input).ok_or(InvalidLiteral)?.into_inner();
input
cfws(input).ok_or(InvalidLiteral)?.into_inner()
}
};

Expand All @@ -208,8 +206,7 @@ impl sealed::Sealed for Rfc2822 {
let input = exactly_n_digits::<_, 2>(input)
.and_then(|item| item.consume_value(|value| parsed.set_second(value)))
.ok_or(InvalidComponent("second"))?;
let input = cfws(input).ok_or(InvalidLiteral)?.into_inner();
input
cfws(input).ok_or(InvalidLiteral)?.into_inner()
} else {
cfws(input).ok_or(InvalidLiteral)?.into_inner()
};
Expand Down

0 comments on commit eb70b0e

Please sign in to comment.