diff --git a/src/utils/geometry.rs b/src/utils/geometry.rs index 45652e4..50a84e2 100644 --- a/src/utils/geometry.rs +++ b/src/utils/geometry.rs @@ -637,6 +637,14 @@ impl AddAssign for Size { } } +impl SubAssign for Size { + #[inline] + fn sub_assign(&mut self, rhs: Self) { + self.w -= rhs.w; + self.h -= rhs.h + } +} + impl Clone for Size { #[inline] fn clone(&self) -> Self {