From 9c9b46d31d55de2c7730f96c09f84c1ba5678763 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Sat, 22 Jun 2024 17:07:44 +0200 Subject: [PATCH] add dedup comment --- lab5/zad1/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lab5/zad1/src/main.rs b/lab5/zad1/src/main.rs index cf07dd9..e144123 100644 --- a/lab5/zad1/src/main.rs +++ b/lab5/zad1/src/main.rs @@ -164,6 +164,7 @@ impl Graph { // Return F, which specifically includes the corresponding edges in E forest.iter() .map(|i| min_edges[i.index]) + // deduplication .collect::>() .iter() .map(|e| *e)