diff options
author | Blaž Hrastnik | 2021-10-28 01:51:19 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-10-28 01:51:19 +0000 |
commit | c1e5831b2186a12ab593df1dc1dc698875484dc6 (patch) | |
tree | 115ebdb72196ecd3c9303abde8048b2759479958 /helix-view | |
parent | 3e69a4852eb9914ced7438c0788170c43756d741 (diff) |
set_path: Pass in the function directly
Diffstat (limited to 'helix-view')
-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 |