In order to work with the borrow checker properly I had to do a pattern like:
let full_path = {
let borrow = context.borrow();
Path::new(&borrow.project_root).join(Path::new(&file_path))
};
and similar for borrow_mut. I will definitely run into issues with this as I move to the other semantic analysis steps so it would be nice to have easy ways to do this and not have ugly blocks everywhere
In order to work with the borrow checker properly I had to do a pattern like:
and similar for borrow_mut. I will definitely run into issues with this as I move to the other semantic analysis steps so it would be nice to have easy ways to do this and not have ugly blocks everywhere