Skip to content

Commit

Permalink
clippy: deny needless_match
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed Jul 10, 2024
1 parent db45478 commit df16021
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ unnecessary_unwrap = "allow"
explicit_auto_deref = "allow"
borrow_deref_ref = "allow"
overflow_check_conditional = "allow"
needless-match = "allow"
match-single-binding = "allow"


Expand Down
8 changes: 1 addition & 7 deletions capsules/extra/src/net/udp/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,13 +491,7 @@ impl<'a> SyscallDriver for UDPDriver<'a> {
cfg[mem::size_of::<UDPEndpoint>()..]
.copy_to_slice(&mut tmp_endpoint);

if let Some(local_iface) =
self.parse_ip_port_pair(&tmp_endpoint)
{
Some(local_iface)
} else {
None
}
self.parse_ip_port_pair(&tmp_endpoint)
}
})
})
Expand Down

0 comments on commit df16021

Please sign in to comment.