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.

fixup! Work around lifetime woes by turning the element in language_tools2 into any element

Piotr Osiewicz60279629375d
diff --git a/crates/language_tools2/src/lsp_log.rs b/crates/language_tools2/src/lsp_log.rs
index a2bcc6e1343..1be0d2780a2 100644
--- a/crates/language_tools2/src/lsp_log.rs
+++ b/crates/language_tools2/src/lsp_log.rs
@@ -596,8 +596,7 @@ fn log_contents(lines: &VecDeque<String>) -> String {
impl Render for LspLogView {
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl Element {
- self
- .editor
+ self.editor
.update(cx, |editor, cx| editor.render(cx).into_any())
}
}