From c1e5831b2186a12ab593df1dc1dc698875484dc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Thu, 28 Oct 2021 10:51:19 +0900 Subject: [PATCH] set_path: Pass in the function directly --- helix-view/src/document.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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