Wrap AnyWeak handles with their typed counterparts

This commit is contained in:
Nathan Sobo 2023-04-02 15:42:03 -06:00
parent 82a713fd1d
commit aed8df96ff
4 changed files with 82 additions and 119 deletions

View file

@ -1231,7 +1231,9 @@ impl Project {
File::from_dyn(buffer.file()).and_then(|file| file.project_entry_id(cx))
})
.ok_or_else(|| anyhow!("no project entry"))?;
Ok((project_entry_id, buffer.into()))
let buffer: &AnyModelHandle = &buffer;
Ok((project_entry_id, buffer.clone()))
})
}