Change `while_let_on_iterator` suggestion to use `by_ref()` by Jarcho · Pull Req...
source link: https://github.com/rust-lang/rust-clippy/pull/7690
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.
It came up in the discussion #7659 that suggesting iter.by_ref()
is a clearer suggestion than &mut iter
. I personally think they're equivalent, but if by_ref()
is clearer to people then that should be the suggestion.
changelog: Change while_let_on_iterator
suggestion when using &mut
to use by_ref()
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK