From 7070038c92f7fff325b5ed887a054eb010cd68b4 Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Thu, 30 Oct 2025 15:17:45 -0700 Subject: [PATCH] gpui: Remove type bound (#41603) Release Notes: - N/A --- crates/gpui/src/window.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rs index c44b0d642a2970dfb803109591d8dc0e2c6cacc6..66ab327a19e2c326f8ba2cdc8710b3d772b45a59 100644 --- a/crates/gpui/src/window.rs +++ b/crates/gpui/src/window.rs @@ -4326,10 +4326,10 @@ impl Window { } /// Returns a generic event listener that invokes the given listener with the view and context associated with the given view handle. - pub fn listener_for( + pub fn listener_for( &self, - view: &Entity, - f: impl Fn(&mut V, &E, &mut Window, &mut Context) + 'static, + view: &Entity, + f: impl Fn(&mut T, &E, &mut Window, &mut Context) + 'static, ) -> impl Fn(&E, &mut Window, &mut App) + 'static { let view = view.downgrade(); move |e: &E, window: &mut Window, cx: &mut App| {