Richard Schneeman on Nostr: In I wish that rustfmt turned: ``` map(|x| do_thing(x)) ``` Into ``` map(|x| { ...
In I wish that rustfmt turned:
```
map(|x| do_thing(x))
```
Into
```
map(|x| { do_thing(x)})
```
Rather than the other way around.
I'm fine with clippy's suggestion to `map(do_thing)`, but when trying to modify the other two cases, I frequently find I'm fighting with my IDE. Even after years of daily #rust development.
```
map(|x| do_thing(x))
```
Into
```
map(|x| { do_thing(x)})
```
Rather than the other way around.
I'm fine with clippy's suggestion to `map(do_thing)`, but when trying to modify the other two cases, I frequently find I'm fighting with my IDE. Even after years of daily #rust development.