Simplify some pattern-matches (#16402)
When those match an exact combinator on Option / Result. Tool-aided by [comby-rust](https://github.com/huitseeker/comby-rust).
This commit is contained in:
committed by
GitHub
parent
bb9d2fd07a
commit
b08cff9e77
@ -198,8 +198,7 @@ fn do_verify_reachable_ports(
|
||||
.collect::<Vec<_>>(),
|
||||
checked_ports_and_sockets
|
||||
.iter()
|
||||
.map(|(_, sockets)| sockets)
|
||||
.flatten(),
|
||||
.flat_map(|(_, sockets)| sockets),
|
||||
);
|
||||
|
||||
let _ = ip_echo_server_request(
|
||||
|
Reference in New Issue
Block a user