diff --git a/.changes/rust-1.57-usage.md b/.changes/rust-1.57-usage.md new file mode 100644 index 000000000000..45b37f3890b7 --- /dev/null +++ b/.changes/rust-1.57-usage.md @@ -0,0 +1,5 @@ +--- +"tauri-utils": patch +--- + +Use `is_symlink` API compatible with Rust v1.57 instead of std/fs/struct.Metadata.html#method.is_symlink. diff --git a/core/tauri-utils/src/platform/starting_binary.rs b/core/tauri-utils/src/platform/starting_binary.rs index 3b06968dc87f..aedc852804b9 100644 --- a/core/tauri-utils/src/platform/starting_binary.rs +++ b/core/tauri-utils/src/platform/starting_binary.rs @@ -68,7 +68,9 @@ impl StartingBinary { ancestor .symlink_metadata() .as_ref() - .map(std::fs::Metadata::is_symlink), + .map(std::fs::Metadata::file_type) + .as_ref() + .map(std::fs::FileType::is_symlink), Ok(true) ) })