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

Piotr Osiewicz created

Change summary

crates/language_tools2/src/lsp_log.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Detailed changes

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())
     }
 }