Skip to content

Commit

Permalink
use tokio::fs::read_link
Browse files Browse the repository at this point in the history
Co-authored-by: Pascal Kuthe <[email protected]>
  • Loading branch information
kirawi and pascalkuthe authored Apr 10, 2024
1 parent 780930e commit 6e0b4d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-view/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ impl Document {
"Path is read only"
));
}
let write_path = std::fs::read_link(&path).unwrap_or_else(|_| path.clone());
let write_path = tokio::fs::read_link(&path).await.unwrap_or_else(|_| path.clone());
let backup = if path.exists() {
let path_ = write_path.clone();
// hacks: we use tempfile to handle the complex task of creating
Expand Down

0 comments on commit 6e0b4d3

Please sign in to comment.