aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/mod_management/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src-tauri/src/mod_management/mod.rs')
-rw-r--r--src-tauri/src/mod_management/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src-tauri/src/mod_management/mod.rs b/src-tauri/src/mod_management/mod.rs
index 2a018920..52ef1180 100644
--- a/src-tauri/src/mod_management/mod.rs
+++ b/src-tauri/src/mod_management/mod.rs
@@ -244,8 +244,8 @@ pub fn parse_mods_in_package(
// Get list of folders in `mods` directory
for path in paths {
- let my_path = path.unwrap().path();
- let md = std::fs::metadata(my_path.clone()).unwrap();
+ let my_path = path?.path();
+ let md = std::fs::metadata(my_path.clone())?;
if md.is_dir() {
directories.push(my_path);
}