Wrap AnyWeak handles with their typed counterparts
This commit is contained in:
parent
82a713fd1d
commit
aed8df96ff
4 changed files with 82 additions and 119 deletions
|
@ -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()))
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue