From e0fd8aa8ea5cd3a3e3a91d8875d0dab17d0a302c Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Tue, 17 Mar 2026 14:26:10 +0100 Subject: [PATCH] export_links on game returns a hashSet --- src/types/game.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/types/game.rs b/src/types/game.rs index 61a827b..2a92def 100644 --- a/src/types/game.rs +++ b/src/types/game.rs @@ -1,4 +1,5 @@ use std::{ + collections::HashSet, io, path::{Path, PathBuf}, }; @@ -20,8 +21,8 @@ impl Game { } } - pub fn export_links(&self) -> Result, io::Error> { - let links: Vec = walk_all_files(&self.path)? + pub fn export_links(&self) -> Result, io::Error> { + let links: HashSet = walk_all_files(&self.path)? .map(|entry| { Link::new( entry.path(),