Skip to content

Commit

Permalink
use older symlink check function (#3579)
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
  • Loading branch information
chippers and lucasfernog committed Mar 1, 2022
1 parent b10a7cf commit 7338811
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/rust-1.57-usage.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 3 additions & 1 deletion core/tauri-utils/src/platform/starting_binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
})
Expand Down

0 comments on commit 7338811

Please sign in to comment.