Clean up construction of FeedbackEditor

This commit is contained in:
Joseph Lyons 2023-01-25 14:20:58 -05:00
parent 7f3d937938
commit 328b779185

View file

@ -113,8 +113,7 @@ impl FeedbackEditor {
cx.subscribe(&editor, |_, _, e, cx| cx.emit(e.clone()))
.detach();
let this = Self { editor, project };
this
Self { editor, project }
}
fn new(project: ModelHandle<Project>, cx: &mut ViewContext<Self>) -> Self {