mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-02-06 13:57:16 +00:00
Apparently I'm so used to a higher rust version
This commit is contained in:
parent
4bb49646e3
commit
ea1d89e2d3
@ -425,20 +425,19 @@ fn get_watch_folders(additional_watch_folders: &[PathBuf]) -> crate::Result<Vec<
|
||||
|
||||
// Add the additional watch folders, resolving the path from the tauri path if it is relative
|
||||
watch_folders.extend(additional_watch_folders.iter().filter_map(|dir| {
|
||||
let path = if dir.is_absolute() {
|
||||
dir
|
||||
if dir.is_absolute() {
|
||||
Some(dir.to_owned())
|
||||
} else {
|
||||
&tauri_path.join(dir)
|
||||
};
|
||||
|
||||
let canonicalized = canonicalize(path).ok();
|
||||
if canonicalized.is_none() {
|
||||
log::warn!(
|
||||
"Additional watch folder '{}' not found, ignoring",
|
||||
path.display()
|
||||
);
|
||||
let path = tauri_path.join(dir);
|
||||
let canonicalized = canonicalize(&path).ok();
|
||||
if canonicalized.is_none() {
|
||||
log::warn!(
|
||||
"Additional watch folder '{}' not found, ignoring",
|
||||
path.display()
|
||||
);
|
||||
}
|
||||
canonicalized
|
||||
}
|
||||
canonicalized
|
||||
}));
|
||||
|
||||
// We also try to watch workspace members, no matter if the tauri cargo project is the workspace root or a workspace member
|
||||
|
||||
Loading…
Reference in New Issue
Block a user