Work around lifetime woes by turning the element in language_tools2 into any element
This commit is contained in:
parent
51d1d92d66
commit
fa0d507639
1 changed files with 3 additions and 3 deletions
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue