From e86b884ca53a93c5fd379f5658b2ab60166986d3 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Mon, 28 Oct 2024 17:59:57 +0100 Subject: [PATCH] fix(tests): `gen` will be a keyword in Rust 2024 --- tests/dijkstra-all.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/dijkstra-all.rs b/tests/dijkstra-all.rs index 6dd545ae..228bf6b9 100644 --- a/tests/dijkstra-all.rs +++ b/tests/dijkstra-all.rs @@ -7,7 +7,7 @@ fn build_network(size: usize) -> Matrix { for a in 0..size { for b in 0..size { if rng.gen_ratio(2, 3) { - network[(a, b)] = rng.gen::() as usize; + network[(a, b)] = rng.r#gen::() as usize; } } }