diff options
-rw-r--r-- | helix-view/src/document.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index 27a19f3c..c623277d 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -555,7 +555,7 @@ impl Document { pub fn set_path(&mut self, path: Option<&Path>) -> Result<(), std::io::Error> { let path = path - .map(|path| helix_core::path::get_canonicalized_path(path)) + .map(helix_core::path::get_canonicalized_path) .transpose()?; // if parent doesn't exist we still want to open the document |