Skip to content

Commit

Permalink
Mark builder method with #[inline]
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jan 2, 2025
1 parent 741022b commit 7928725
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/epaint/src/shapes/rect_shape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7928725

Please sign in to comment.