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 18:10:05 -05:00 committed by GitHub
parent 2c950cf7f5
commit 7bf4fd6c46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,9 +114,9 @@ impl From<Arc<Image>> for ImageSource {
} }
} }
impl< impl<F> From<F> for ImageSource
F: Fn(&mut Window, &mut App) -> Option<Result<Arc<RenderImage>, ImageCacheError>> + 'static, where
> From<F> for ImageSource F: Fn(&mut Window, &mut App) -> Option<Result<Arc<RenderImage>, ImageCacheError>> + 'static,
{ {
fn from(value: F) -> Self { fn from(value: F) -> Self {
Self::Custom(Arc::new(value)) Self::Custom(Arc::new(value))