Skip to content

Commit

Permalink
Add version to ref_mut_iter_method_chain
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarcho committed Nov 12, 2021
1 parent 96c400b commit f7230fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clippy_lints/src/methods/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f7230fe

Please sign in to comment.