diff --git a/crates/tauri/src/path/desktop.rs b/crates/tauri/src/path/desktop.rs index f5a912bea..caf797613 100644 --- a/crates/tauri/src/path/desktop.rs +++ b/crates/tauri/src/path/desktop.rs @@ -321,7 +321,7 @@ impl PathResolver { if let Some(base_directory) = app_directories_override .components() .next() - .and_then(|str| BaseDirectory::from_variable(&str.as_os_str().to_str()?)) + .and_then(|str| BaseDirectory::from_variable(str.as_os_str().to_str()?)) { return if matches!( base_directory,