@@ -274,13 +274,13 @@ impl<T> NFA<T> {
274
274
fn process_char ( & self , threads : Vec < Thread > , char : char , pos : usize ) -> Vec < Thread > {
275
275
let mut returned = Vec :: with_capacity ( threads. len ( ) ) ;
276
276
277
- for mut thread in threads. into_iter ( ) {
277
+ for mut thread in threads {
278
278
let current_state = self . get ( thread. state ) ;
279
279
280
280
let mut count = 0 ;
281
281
let mut found_state = 0 ;
282
282
283
- for & index in current_state. next_states . iter ( ) {
283
+ for & index in & current_state. next_states {
284
284
let state = & self . states [ index] ;
285
285
286
286
if state. chars . matches ( char) {
@@ -296,7 +296,7 @@ impl<T> NFA<T> {
296
296
continue ;
297
297
}
298
298
299
- for & index in current_state. next_states . iter ( ) {
299
+ for & index in & current_state. next_states {
300
300
let state = & self . states [ index] ;
301
301
if state. chars . matches ( char) {
302
302
let mut thread = fork_thread ( & thread, state) ;
@@ -322,7 +322,7 @@ impl<T> NFA<T> {
322
322
{
323
323
let state = self . get ( index) ;
324
324
325
- for & index in state. next_states . iter ( ) {
325
+ for & index in & state. next_states {
326
326
let state = self . get ( index) ;
327
327
if state. chars == chars {
328
328
return index;
0 commit comments