replace .skip(n).next() with .nth(n)
This commit is contained in:
committed by
Bennet Bleßmann
parent
de89a78cbb
commit
4f04d2dfca
@@ -3793,11 +3793,7 @@ impl Machine {
|
|||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub(crate) fn first_stream(&mut self) {
|
pub(crate) fn first_stream(&mut self) {
|
||||||
let first_stream = self
|
let first_stream = self.indices.iter_streams(..).find(|s| !s.is_null_stream());
|
||||||
.indices
|
|
||||||
.iter_streams(..)
|
|
||||||
.filter(|s| !s.is_null_stream())
|
|
||||||
.next();
|
|
||||||
|
|
||||||
if let Some(first_stream) = first_stream {
|
if let Some(first_stream) = first_stream {
|
||||||
let stream = first_stream.into();
|
let stream = first_stream.into();
|
||||||
@@ -3817,8 +3813,7 @@ impl Machine {
|
|||||||
.indices
|
.indices
|
||||||
.iter_streams(prev_stream..)
|
.iter_streams(prev_stream..)
|
||||||
.filter(|s| !s.is_null_stream())
|
.filter(|s| !s.is_null_stream())
|
||||||
.skip(1)
|
.nth(1);
|
||||||
.next();
|
|
||||||
|
|
||||||
if let Some(next_stream) = next_stream {
|
if let Some(next_stream) = next_stream {
|
||||||
let var = self.deref_register(2).as_var().unwrap();
|
let var = self.deref_register(2).as_var().unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user