From ef421e20eb71b062f2cb1856037d0e3ded3793b9 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Sun, 1 May 2022 11:50:37 +0200 Subject: [PATCH] Deal with IntoIter deprecation --- src/graph.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/graph.rs b/src/graph.rs index 1068bcb..8ce3832 100644 --- a/src/graph.rs +++ b/src/graph.rs @@ -1,4 +1,3 @@ -use std::array::IntoIter; use std::cell::Cell; use std::collections::HashMap; use std::collections::HashSet; @@ -116,7 +115,7 @@ where if lb < ub { // This edge might introduce a cycle, need to recompute the topological sort - let mut visited = IntoIter::new([x, y]).collect(); + let mut visited = IntoIterator::into_iter([x, y]).collect(); let mut delta_f = Vec::new(); let mut delta_b = Vec::new();