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

This commit is contained in:
Piotr Osiewicz 2023-12-31 17:34:39 +01:00
parent fa0d507639
commit 6027962937

View File

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