set_path: Pass in the function directly
This commit is contained in:
parent
3e69a4852e
commit
c1e5831b21
@ -555,7 +555,7 @@ pub fn encoding(&self) -> &'static encoding_rs::Encoding {
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user