Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix
clippy::redundant_closure_call
warning
The `diff_row!` macro in `blueprint_diff.rs` has recently started generating [`clippy::redundant_closure_call`][1] warnings, as invocations without a `display` function pass in a closure that performs an identity operation (e.g. just returns the value). Rather than allowing the warning, which would also have been fine, I've changed this arm of the macro to pass the named function `std::convert::identity` instead, which is equivalent but eliminates the closure. [1]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_call
- Loading branch information