chore: Fix clippy violations from Cargo.toml (#15216)
/cc @maxdeviant Release Notes: - N/A
This commit is contained in:
parent
d755d29577
commit
86456ce379
25 changed files with 94 additions and 93 deletions
|
@ -4419,7 +4419,7 @@ impl<'a, V: 'static> ViewContext<'a, V> {
|
|||
/// Many GPUI callbacks take the form of `Fn(&E, &mut WindowContext)`,
|
||||
/// but it's often useful to be able to access view state in these
|
||||
/// callbacks. This method provides a convenient way to do so.
|
||||
pub fn listener<E>(
|
||||
pub fn listener<E: ?Sized>(
|
||||
&self,
|
||||
f: impl Fn(&mut V, &E, &mut ViewContext<V>) + 'static,
|
||||
) -> impl Fn(&E, &mut WindowContext) + 'static {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue