Avoid passing a closure to workspace::register_project_item
Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
co-authored by
Max Brunsfeld
parent
4bbfd0918e
commit
2b4738d82d
@@ -340,9 +340,7 @@ pub fn init(cx: &mut MutableAppContext) {
|
||||
cx.add_async_action(Editor::confirm_rename);
|
||||
cx.add_async_action(Editor::find_all_references);
|
||||
|
||||
workspace::register_project_item(cx, |project, buffer, cx| {
|
||||
Editor::for_buffer(buffer, Some(project), cx)
|
||||
});
|
||||
workspace::register_project_item::<Editor>(cx);
|
||||
}
|
||||
|
||||
trait SelectionExt {
|
||||
|
||||
Reference in New Issue
Block a user