Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Clean up construction of FeedbackEditor

Joseph Lyons328b779185f7
diff --git a/crates/feedback/src/feedback_editor.rs b/crates/feedback/src/feedback_editor.rs
index 5398a8900ec..e034da7db27 100644
--- a/crates/feedback/src/feedback_editor.rs
+++ b/crates/feedback/src/feedback_editor.rs
@@ -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 {