Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve redundant_closure_call clippy lint
error: try not to call a closure in the expression where it is declared --> serde/src/de/impls.rs:1590:76 | 1590 | <(_, u16)>::deserialize(deserializer).map(|(ip, port)| $new(ip, port)) | ^^^^^^^^^^^^^^ ... 1620 | / parse_socket_impl!("IPv6 socket address" net::SocketAddrV6, |ip, port| net::SocketAddrV6::new( 1621 | | ip, port, 0, 0 1622 | | )); | |__- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_call = note: `-D clippy::redundant-closure-call` implied by `-D clippy::all` = note: this error originates in the macro `parse_socket_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
- Loading branch information