Clean up construction of FeedbackEditor
This commit is contained in:
parent
7f3d937938
commit
328b779185
1 changed files with 1 additions and 2 deletions
|
@ -113,8 +113,7 @@ impl FeedbackEditor {
|
||||||
cx.subscribe(&editor, |_, _, e, cx| cx.emit(e.clone()))
|
cx.subscribe(&editor, |_, _, e, cx| cx.emit(e.clone()))
|
||||||
.detach();
|
.detach();
|
||||||
|
|
||||||
let this = Self { editor, project };
|
Self { editor, project }
|
||||||
this
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn new(project: ModelHandle<Project>, cx: &mut ViewContext<Self>) -> Self {
|
fn new(project: ModelHandle<Project>, cx: &mut ViewContext<Self>) -> Self {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue