From fa0d5076390ff14cd71eb523b03387621d6b9fb2 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Sun, 31 Dec 2023 17:33:21 +0100 Subject: [PATCH] Work around lifetime woes by turning the element in language_tools2 into any element --- crates/language_tools2/src/lsp_log.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/language_tools2/src/lsp_log.rs b/crates/language_tools2/src/lsp_log.rs index 6174511474ea99b5c8496ed62c05566f2c9cb9c3..a2bcc6e1343e4b259306129c872c4aec4414687c 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 { impl Render for LspLogView { fn render(&mut self, cx: &mut ViewContext) -> 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()) } }