about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-03-03 13:36:49 +0000
committerbors <bors@rust-lang.org>2022-03-03 13:36:49 +0000
commitd56f457715a603be36e454945b5b3d3ab0a7ccdc (patch)
tree305bb8f135dbc6f5a51382e2c85abad70b8ac35d /src/test/codegen/src-hash-algorithm
parentef4af1d2d8c5048501fae24dbc34836c841e7d6e (diff)
parent6cc2eeaa56b6f37f6c44a39e8b137fb22731aedc (diff)
downloadrust-d56f457715a603be36e454945b5b3d3ab0a7ccdc.tar.gz
rust-d56f457715a603be36e454945b5b3d3ab0a7ccdc.zip
Auto merge of #8483 - ldm0:iter_with_drain_simple, r=flip1995,giraffate
Use `.into_iter()` rather than `.drain(..)`

Replacing `.drain(..)` with `.into_iter()` makes my project's binary size smaller.

Fixes #1908

Applicability of this suggestion is `MaybeIncorrect` rather than `MachineApplicable` due to the complexity of "checking otherwise usage" X-|

changelog: Add new lint [`iter_with_drain`]
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions