Skip to content
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

Add lint ref_mut_iter_method_chain #7688

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add version to ref_mut_iter_method_chain
Jarcho committed Nov 12, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 453c07b4eb506f9cab1054c828442ebef1056bba
1 change: 1 addition & 0 deletions clippy_lints/src/methods/mod.rs
Original file line number Diff line number Diff line change
@@ -1879,6 +1879,7 @@ declare_clippy_lint! {
/// let mut iter = ['a', 'b', '.', 'd'].iter();
/// let before_dot = iter.by_ref().take_while(|&&c| c != '.').collect::<Vec<_>>();
/// ```
#[clippy::version = "1.58.0"]
pub REF_MUT_ITER_METHOD_CHAIN,
style,
"`&mut iter` used in a method chain"