5

fix `while_let_on_iterator` suggestion in a closure by Jarcho · Pull Request #72...

 2 years ago
source link: https://github.com/rust-lang/rust-clippy/pull/7262
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Copy link

Contributor

Jarcho commented on May 21

fixes: #7249

A future improvement would be to check if the closure is being used as FnOnce, in which case the original suggestion would be correct.

changelog: Suggest &mut iter inside a closure for while_let_on_iterator


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK