Add utility to help format the code (#247)

Signed-off-by: Aisuko <urakiny@gmail.com>
This commit is contained in:
Aisuko
2022-10-11 06:17:10 +02:00
committed by GitHub
parent fac58803cc
commit 40c55e542d
39 changed files with 415 additions and 421 deletions
+1 -2
View File
@@ -42,7 +42,7 @@ pub(crate) fn get_egs_manifests(
}
}
}
let mut manifests :Vec<ManifestItem> = all_manifests
let mut manifests: Vec<ManifestItem> = all_manifests
.filter(is_game_installed)
.filter(is_game_launchable)
.collect();
@@ -71,7 +71,6 @@ pub(crate) fn get_egs_manifests(
}
}
fn is_game_installed(manifest: &ManifestItem) -> bool {
Path::new(manifest.manifest_location.as_str()).exists()
}