fix: syntax issues

This commit is contained in:
huzibaca
2024-12-31 04:50:12 +08:00
parent 44d1ec433d
commit 04d766884a
5 changed files with 6 additions and 7 deletions

View File

@@ -99,7 +99,7 @@ pub fn get_last_part_and_decode(url: &str) -> Option<String> {
/// open file
pub fn open_file(_: tauri::AppHandle, path: PathBuf) -> Result<()> {
open::that_detached(&path.as_os_str())?;
open::that_detached(path.as_os_str())?;
Ok(())
}