mirror of https://github.com/helix-editor/helix
set_path: Pass in the function directly
parent
3e69a4852e
commit
c1e5831b21
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue