Skip to content

Commit

Permalink
fixup! Work around lifetime woes by turning the element in language_t…
Browse files Browse the repository at this point in the history
…ools2 into any element
  • Loading branch information
osiewicz committed Jan 1, 2024
1 parent fa0d507 commit 6027962
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/language_tools2/src/lsp_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}
Expand Down

0 comments on commit 6027962

Please sign in to comment.