RazrFalcon / tiny-skia

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

Remove unwrap in Rect::round_out #50

Closed Wardenfar closed 2 years ago

Wardenfar commented 2 years ago

fix #49

Removed unwrap and return an option.

RazrFalcon commented 2 years ago

Thanks!

Can you replace a rendering test with just a simple test in geom.rs? Just for this function.

Also, Rect::round above round_out has the same issue, so you probably should update it too.

Wardenfar commented 2 years ago

I have made the changes

RazrFalcon commented 2 years ago

Thanks!