servo / euclid

Geometry primitives (basic linear algebra) for Rust
Other
462 stars 103 forks source link

Add a fallible Rect::try_inner_rect method that never panics #511

Closed delan closed 9 months ago

delan commented 9 months ago

This patch was going to be part of the fix for servo/servo#30576, but I’m no longer convinced that checking for underflow in the placement function is the right approach.