We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b244082 commit 41139fbCopy full SHA for 41139fb
src-tauri/src/mod_management/mod.rs
@@ -244,8 +244,8 @@ pub fn parse_mods_in_package(
244
245
// Get list of folders in `mods` directory
246
for path in paths {
247
- let my_path = path.unwrap().path();
248
- let md = std::fs::metadata(my_path.clone()).unwrap();
+ let my_path = path?.path();
+ let md = std::fs::metadata(my_path.clone())?;
249
if md.is_dir() {
250
directories.push(my_path);
251
}
0 commit comments