Skip to content

Commit

Permalink
Mark Painter::with_layer_id as #[inline]
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Dec 26, 2024
1 parent d46b343 commit 2cd613c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/egui/src/painter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ impl Painter {

/// Redirect where you are painting.
#[must_use]
#[inline]
pub fn with_layer_id(mut self, layer_id: LayerId) -> Self {
self.layer_id = layer_id;
self
Expand Down

0 comments on commit 2cd613c

Please sign in to comment.