From 7928725b66614f781fca09fe3724e224476f0d9e Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 2 Jan 2025 15:28:39 +0100 Subject: [PATCH] Mark builder method with `#[inline]` --- crates/epaint/src/shapes/rect_shape.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/epaint/src/shapes/rect_shape.rs b/crates/epaint/src/shapes/rect_shape.rs index 2c7f216a73e..b0750aa89ec 100644 --- a/crates/epaint/src/shapes/rect_shape.rs +++ b/crates/epaint/src/shapes/rect_shape.rs @@ -97,6 +97,7 @@ impl RectShape { } /// Set the texture to use when painting this rectangle, if any. + #[inline] pub fn with_texture(mut self, fill_texture_id: TextureId, uv: Rect) -> Self { self.brush = Some(Arc::new(Brush { fill_texture_id,