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:
parent
2c950cf7f5
commit
7bf4fd6c46
1 changed files with 3 additions and 3 deletions
|
@ -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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue