Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Work around lifetime woes by turning the element in language_tools2 into any element
Piotr Osiewiczfa0d5076390f
diff --git a/crates/language_tools2/src/lsp_log.rs b/crates/language_tools2/src/lsp_log.rsindex 6174511474e..a2bcc6e1343 100644--- a/crates/language_tools2/src/lsp_log.rs+++ b/crates/language_tools2/src/lsp_log.rs@@ -596,9 +596,9 @@ fn log_contents(lines: &VecDeque<String>) -> String {impl Render for LspLogView {fn render(&mut self, cx: &mut ViewContext<Self>) -> impl Element {- let _x = self.editor.update(cx, |editor, cx| editor.render(cx));-- div()+ self+ .editor+ .update(cx, |editor, cx| editor.render(cx).into_any())}}