mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
use older symlink check function (#3579)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
This commit is contained in:
5
.changes/rust-1.57-usage.md
Normal file
5
.changes/rust-1.57-usage.md
Normal file
@@ -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.
|
||||
@@ -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)
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user