Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

gpui: Remove unneeded anonymous lifetime from `Render::render` (#27684)

Marshall Bowerse90411efa23d
diff --git a/crates/gpui/src/element.rs b/crates/gpui/src/element.rs
index c4e70d78852..6af0474ad50 100644
--- a/crates/gpui/src/element.rs
+++ b/crates/gpui/src/element.rs
@@ -118,7 +118,7 @@ impl<T: IntoElement> FluentBuilder for T {}
/// other entities. Views are `Entity`'s which `impl Render` and drawn to the screen.
pub trait Render: 'static + Sized {
/// Render this view into an element tree.
- fn render(&mut self, window: &mut Window, cx: &mut Context<'_, Self>) -> impl IntoElement;
+ fn render(&mut self, window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement;
}
impl Render for Empty {