RazrFalcon / tiny-skia

A tiny Skia subset ported to Rust
BSD 3-Clause "New" or "Revised" License
1.05k stars 67 forks source link

Change Rect::inset and outset to take shared reference #89

Closed wezm closed 1 year ago

wezm commented 1 year ago

These two methods were taking a mutable reference but they don't mutate self and construct a new value so I think it makes more sense for them to just borrow self.

RazrFalcon commented 1 year ago

Good catch. Thanks!