1
Fork 0

Use more into_iter rather than drain(..)

This commit is contained in:
Donough Liu 2022-08-29 19:06:36 +01:00 committed by bogon-right
parent b96fa1a25c
commit 97b1a6146c
6 changed files with 16 additions and 16 deletions

View file

@ -555,7 +555,7 @@ impl TokenStreamBuilder {
// Get the first stream, which will become the result stream.
// If it's `None`, create an empty stream.
let mut iter = streams.drain(..);
let mut iter = streams.into_iter();
let mut res_stream_lrc = iter.next().unwrap().0;
// Append the subsequent elements to the result stream, after