Skip to content

Commit

Permalink
Remove unnecessary mut.
Browse files Browse the repository at this point in the history
  • Loading branch information
laurmaedje committed Mar 24, 2021
1 parent 983cdc8 commit 2e6aa24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ impl Transform {

/// Post-scales the current transform.
#[must_use]
pub fn post_scale(&mut self, sx: f32, sy: f32) -> Self {
pub fn post_scale(&self, sx: f32, sy: f32) -> Self {
self.post_concat(Transform::from_scale(sx, sy))
}

Expand Down

0 comments on commit 2e6aa24

Please sign in to comment.