Skip to content

Commit 7338811

Browse files
use older symlink check function (#3579)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
1 parent b10a7cf commit 7338811

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎.changes/rust-1.57-usage.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-utils": patch
3+
---
4+
5+
Use `is_symlink` API compatible with Rust v1.57 instead of std/fs/struct.Metadata.html#method.is_symlink.

‎core/tauri-utils/src/platform/starting_binary.rs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ impl StartingBinary {
6868
ancestor
6969
.symlink_metadata()
7070
.as_ref()
71-
.map(std::fs::Metadata::is_symlink),
71+
.map(std::fs::Metadata::file_type)
72+
.as_ref()
73+
.map(std::fs::FileType::is_symlink),
7274
Ok(true)
7375
)
7476
})

0 commit comments

Comments
 (0)