This commit is contained in:
Philip Kristoffersen
2022-04-09 21:49:11 +02:00
committed by GitHub
parent 2a1523470f
commit a0c6fe0c8f
22 changed files with 2349 additions and 572 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ pub struct SteamUsersInfo {
/// Get the paths to the steam users shortcuts (one for each user)
pub fn get_shortcuts_paths(
settings: &SteamSettings,
) -> Result<Vec<SteamUsersInfo>, Box<dyn Error>> {
) -> Result<Vec<SteamUsersInfo>, Box<dyn Error + Sync + Send>> {
let user_location = settings.location.clone();
let steam_path_str = match user_location {
Some(location) => location,
@@ -107,7 +107,7 @@ pub fn get_shortcuts_paths(
Ok(users_info)
}
pub fn get_default_location() -> Result<String, Box<dyn Error>> {
pub fn get_default_location() -> Result<String, Box<dyn Error + Sync + Send>> {
#[cfg(target_os = "windows")]
let path_string = {
let key = "PROGRAMFILES(X86)";