Use defaultconfig instead of default on structs

This commit is contained in:
Philip Kristoffersen
2021-09-25 12:19:07 +02:00
parent 993251156d
commit f68db38a7f
6 changed files with 30 additions and 69 deletions
+6
View File
@@ -84,8 +84,14 @@ where
{
if platform.enabled() {
let shortcuts_to_add_result = platform.get_shortcuts();
match shortcuts_to_add_result {
Ok(shortcuts_to_add) => {
println!(
"Found {} games for platform {}",
shortcuts_to_add.len(),
platform.name()
);
current_shortcuts.retain(|f| !f.tags.contains(&platform.name().to_owned()));
for shortcut in shortcuts_to_add {
let shortcut_owned: ShortcutOwned = shortcut.into();