Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
chore: update fn paint
Piotr Osiewicz6fbef9f3c7ee
diff --git a/crates/search/src/elements.rs b/crates/search/src/elements.rsindex cdc203983f4..bd81f4f6a2a 100644--- a/crates/search/src/elements.rs+++ b/crates/search/src/elements.rs@@ -5,7 +5,7 @@ use gpui::geometry::rect::RectF;use gpui::geometry::vector::IntoVector2F;use gpui::json::{self, ToJson};use gpui::{scene::Path, LayoutContext};-use gpui::{Element, SceneBuilder, View, ViewContext};+use gpui::{Element, PaintContext, SceneBuilder, View, ViewContext};type CreatePath = fn(RectF, Color) -> Path;type AdjustBorder = fn(RectF, f32) -> RectF;@@ -106,7 +106,7 @@ impl<V: View> Element<V> for ButtonSide {_: RectF,_: &mut Self::LayoutState,_: &mut V,- _: &mut ViewContext<V>,+ _: &mut PaintContext<V>,) -> Self::PaintState {let mut bounds = bounds;if let Some((border_width, border_color)) = self.border.as_ref() {