Skip to content

Commit

Permalink
fix more clippy lints that only show in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
stbuehler committed Jun 24, 2024
1 parent ab1e556 commit 3803b85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parsers/inetaddr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ pub fn inet_addr(s: &str) -> Option<Ipv4Addr> {
}
let slot = if part.starts_with("0x") || part.starts_with("0X") {
let part = &part[2..];
if part.starts_with("+") {
if part.starts_with('+') {
// we don't want to support "0x+..."
return None;
}
u32::from_str_radix(part, 16)
} else if part.starts_with("0") {
} else if part.starts_with('0') {
u32::from_str_radix(part, 8)
} else {
part.parse::<u32>()
Expand Down

0 comments on commit 3803b85

Please sign in to comment.