linebender / piet

An abstraction for 2D graphics.
Apache License 2.0
1.24k stars 93 forks source link

Fixup new clippy lints #506

Closed cmyr closed 2 years ago

cmyr commented 2 years ago

These are slightly weird, but basically clippy now uses a heuristic to identify certain method calls that it expects to be resolve to a field access, and flags that these do not need to be wrapped in closures:

https://github.com/rust-lang/rust-clippy/issues/8109#issuecomment-991964291