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
This commit is contained in:
Marshall Bowers
2025-01-30 23:10:05 +00:00
committed by GitHub
parent 2c950cf7f5
commit 7bf4fd6c46
+3 -3
View File
@@ -114,9 +114,9 @@ impl From<Arc<Image>> for ImageSource {
}
}
impl<
F: Fn(&mut Window, &mut App) -> Option<Result<Arc<RenderImage>, ImageCacheError>> + 'static,
> From<F> for ImageSource
impl<F> From<F> for ImageSource
where
F: Fn(&mut Window, &mut App) -> Option<Result<Arc<RenderImage>, ImageCacheError>> + 'static,
{
fn from(value: F) -> Self {
Self::Custom(Arc::new(value))