Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
gpui: Move generic bounds to a `where` clause for better readability (#23985)
Marshall Bowers7bf4fd6c46c5
diff --git a/crates/gpui/src/elements/img.rs b/crates/gpui/src/elements/img.rsindex 3dbca87ea24..d393195e7bf 100644--- a/crates/gpui/src/elements/img.rs+++ b/crates/gpui/src/elements/img.rs@@ -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))