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