Skip to content

Commit

Permalink
Merge identical match branches
Browse files Browse the repository at this point in the history
  • Loading branch information
swsnr committed Jan 10, 2025
1 parent bb202d4 commit cb3e4f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net/arpcache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ impl std::error::Error for ArpCacheParseError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match self {
ArpCacheParseError::InvalidIpAddress(addr_parse_error) => Some(addr_parse_error),
ArpCacheParseError::InvalidHardwareType(parse_int_error) => Some(parse_int_error),
ArpCacheParseError::InvalidFlags(parse_int_error) => Some(parse_int_error),
ArpCacheParseError::InvalidHardwareType(parse_int_error)
| ArpCacheParseError::InvalidFlags(parse_int_error) => Some(parse_int_error),
_ => None,
}
}
Expand Down

0 comments on commit cb3e4f5

Please sign in to comment.