Remove expect (#321)

* Remove expects

* Disallow todo and panic
This commit is contained in:
Philip Kristoffersen
2023-01-08 14:35:34 +01:00
committed by GitHub
parent 0410ceffff
commit 2f70dd1e67
5 changed files with 27 additions and 28 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ pub fn get_shortcuts_paths(settings: &SteamSettings) -> eyre::Result<Vec<SteamUs
let folder_path = folder.path();
let folder_str = folder_path
.to_str()
.expect("We just checked that this was there");
.unwrap_or_default();
let path = format!("{}//config//shortcuts.vdf", folder_str);
let shortcuts_path = Path::new(path.as_str());
let folder_string = folder_str.to_string();