rust-lang / rust-clippy

A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/clippy/
https://rust-lang.github.io/rust-clippy/
Other
10.89k stars 1.45k forks source link

check if closure as method arg has read access in [`collection_is_never_read`] #12694

Closed J-ZhengLi closed 2 weeks ago

J-ZhengLi commented 3 weeks ago

fixes: #11783


changelog: fix [collection_is_never_read] misfires when use retain for iteration

rustbot commented 3 weeks ago

r? @dswij

rustbot has assigned @dswij. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

dswij commented 2 weeks ago

Thank you!

@bors r+

bors commented 2 weeks ago

:pushpin: Commit adab7d08d75f8e92c1202aff3f0abd797da1062b has been approved by dswij

It is now in the queue for this repository.

bors commented 2 weeks ago

:hourglass: Testing commit adab7d08d75f8e92c1202aff3f0abd797da1062b with merge 0fc9a65b8f161314dfc5016472d949b6b3986e22...

bors commented 2 weeks ago

:sunny: Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test Approved by: dswij Pushing 0fc9a65b8f161314dfc5016472d949b6b3986e22 to master...