Skip to content

Commit

Permalink
Convert if-let to match
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGVSV committed Jan 2, 2023
1 parent bf3e62d commit 57dc883
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,9 @@ impl ReflectFieldAttrParser {
self.check_ignore_order(&args, &mut errors);
self.check_skip_order(&args, &mut errors);

if let Some(error) = errors {
Err(error)
} else {
Ok(args)
match errors {
Some(error) => Err(error),
None => Ok(args),
}
}

Expand Down

0 comments on commit 57dc883

Please sign in to comment.