Skip to content

Commit

Permalink
style: cargo clippy and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
johnstonskj committed Jul 4, 2024
1 parent 8fefe5c commit 0806e94
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -742,17 +742,18 @@ fn parse_local_part(part: &str, _options: Options) -> Result<(), Error> {

fn parse_quoted_local_part(part: &str) -> Result<(), Error> {
if is_qcontent(part) {
return Ok(());
Ok(())
} else {
Error::InvalidCharacter.into()
}
Error::InvalidCharacter.into()
}

fn parse_unquoted_local_part(part: &str) -> Result<(), Error> {
if is_dot_atom_text(part) {
return Ok(());
Ok(())
} else {
Error::InvalidCharacter.into()
}
Error::InvalidCharacter.into()
}

fn parse_domain(part: &str, options: Options) -> Result<(), Error> {
Expand Down

0 comments on commit 0806e94

Please sign in to comment.