set_path: Pass in the function directly
This commit is contained in:
parent
3e69a4852e
commit
c1e5831b21
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue