aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/mod_management/mod.rs
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2024-08-14 14:40:39 +0200
committerGitHub <noreply@github.com>2024-08-14 14:40:39 +0200
commit41139fb5546c19d27771ea6807cbdab17247424c (patch)
tree909fee1ccb9468aa1d3894f0b390a945800be8a9 /src-tauri/src/mod_management/mod.rs
parentb244082b95226f632b3ee2b53f28b7e5e3146d61 (diff)
downloadFlightCore-41139fb5546c19d27771ea6807cbdab17247424c.tar.gz
FlightCore-41139fb5546c19d27771ea6807cbdab17247424c.zip
fix: Remove unnecessary unwraps (#1000)
We already have `anyhow` for boxing the error so we can just bubble it up
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);
}