-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix while_let_on_iterator
suggestion in a closure
#7262
Conversation
r? @phansch (rust-highfive has picked a reviewer for you, use r? to override) |
📌 Commit 7db0e4f has been approved by |
fix `while_let_on_iterator` suggestion in a closure 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`
@bors r=xFrednet,flip1995 |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit 7db0e4f has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
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 forwhile_let_on_iterator