Resolve warnings instead of suppressing them (#1848)

* Eliminate 'unused mut' warning and suppression

* Eliminate 'unreachable code' warning and suppression

* Fix formatting
This commit is contained in:
Julian Braha authored and GitHub committed 2023-12-06 06:16:14 +00:00
1 parent 6d89077a29
commit edbff8b398
2 files changed
+11 -3

No files matched your search

+5 -1
View File
@@ -309,7 +309,11 @@ pub async fn open_file_path_with(
error!("{e:#?}");
});
#[allow(unreachable_code)]
#[cfg(not(any(
target_os = "windows",
target_os = "linux",
target_os = "macos"
)))]
Err(())
})
.collect::<Result<Vec<_>, _>>()