You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #6855 - ehuss:clippy-redundant_closure, r=nrc
Ignore Clippy redundant_closure
I think sometimes the closure is easier to read. Compare
```rust
x.map(|s| s.to_string())
```
vs
```rust
x.map(std::string::ToString::to_string)
```
I think it is also easier to modify when it is a closure. However, I don't feel strongly about it, so if anyone wants the Clippy form, I'm fine with switching things over to that.
0 commit comments