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(),