1010// License for the specific language governing permissions and limitations
1111// under the License.
1212
13- use ahash :: RandomState ;
13+ use foldhash :: fast :: RandomState ;
1414use hashbrown:: { HashMap , HashSet } ;
1515use indexmap:: IndexSet ;
1616use std:: hash:: Hash ;
@@ -93,7 +93,7 @@ fn unblock(
9393#[ allow( clippy:: too_many_arguments) ]
9494fn process_stack (
9595 start_node : NodeIndex ,
96- stack : & mut Vec < ( NodeIndex , IndexSet < NodeIndex , ahash :: RandomState > ) > ,
96+ stack : & mut Vec < ( NodeIndex , IndexSet < NodeIndex , foldhash :: fast :: RandomState > ) > ,
9797 path : & mut Vec < NodeIndex > ,
9898 closed : & mut HashSet < NodeIndex > ,
9999 blocked : & mut HashSet < NodeIndex > ,
@@ -117,7 +117,7 @@ fn process_stack(
117117 next_node,
118118 subgraph
119119 . neighbors ( next_node)
120- . collect :: < IndexSet < NodeIndex , ahash :: RandomState > > ( ) ,
120+ . collect :: < IndexSet < NodeIndex , foldhash :: fast :: RandomState > > ( ) ,
121121 ) ) ;
122122 closed. remove ( & next_node) ;
123123 blocked. insert ( next_node) ;
@@ -197,7 +197,7 @@ impl SimpleCycleIter {
197197 return Some ( vec ! [ cycle_node] ) ;
198198 }
199199 // Restore previous state if it exists
200- let mut stack: Vec < ( NodeIndex , IndexSet < NodeIndex , ahash :: RandomState > ) > =
200+ let mut stack: Vec < ( NodeIndex , IndexSet < NodeIndex , foldhash :: fast :: RandomState > ) > =
201201 std:: mem:: take ( & mut self . stack ) ;
202202 let mut path: Vec < NodeIndex > = std:: mem:: take ( & mut self . path ) ;
203203 let mut closed: HashSet < NodeIndex > = std:: mem:: take ( & mut self . closed ) ;
@@ -258,7 +258,7 @@ impl SimpleCycleIter {
258258 self . start_node,
259259 subgraph
260260 . neighbors( self . start_node)
261- . collect:: <IndexSet <NodeIndex , ahash :: RandomState >>( ) ,
261+ . collect:: <IndexSet <NodeIndex , foldhash :: fast :: RandomState >>( ) ,
262262 ) ] ;
263263 if let Some ( res) = process_stack (
264264 self . start_node ,
0 commit comments