diff --git a/src/stream_tokens.rs b/src/stream_tokens.rs index 8e4e634..34246f2 100644 --- a/src/stream_tokens.rs +++ b/src/stream_tokens.rs @@ -248,11 +248,7 @@ mod tests { } else if once { once = false; None - } else if let Some(x) = it2.next() { - Some(x) - } else { - None - } + } else { it2.next() } }); let mut tokens = StreamTokens::into_tokens(it); assert!(tokens.tokens("hello".chars()));