From 7bf4fd6c46c56a3f5afaee7a85ac129056e7caa0 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 30 Jan 2025 18:10:05 -0500 Subject: [PATCH] gpui: Move generic bounds to a `where` clause for better readability (#23985) This PR moves some generic bounds to a `where` clause to improve the formatting/readability of the associated `impl` block. Release Notes: - N/A --- crates/gpui/src/elements/img.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/gpui/src/elements/img.rs b/crates/gpui/src/elements/img.rs index 3dbca87ea2..d393195e7b 100644 --- a/crates/gpui/src/elements/img.rs +++ b/crates/gpui/src/elements/img.rs @@ -114,9 +114,9 @@ impl From> for ImageSource { } } -impl< - F: Fn(&mut Window, &mut App) -> Option, ImageCacheError>> + 'static, - > From for ImageSource +impl From for ImageSource +where + F: Fn(&mut Window, &mut App) -> Option, ImageCacheError>> + 'static, { fn from(value: F) -> Self { Self::Custom(Arc::new(value))