From 08a37406f2d2fa6c8aacb6131e0675e7f12cda35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Wed, 4 Jun 2025 12:14:31 +0200 Subject: [PATCH] Replace generic `into` call with `Vector::from` --- core/src/rectangle.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/rectangle.rs b/core/src/rectangle.rs index 8ffb0797..bea27b9d 100644 --- a/core/src/rectangle.rs +++ b/core/src/rectangle.rs @@ -244,7 +244,7 @@ impl Rectangle { /// Snaps the [`Rectangle`] to __unsigned__ integer coordinates. pub fn snap(self) -> Option> { let top_left = self.position().snap(); - let bottom_right = (self.position() + self.size().into()).snap(); + let bottom_right = (self.position() + Vector::from(self.size())).snap(); let width = bottom_right.x.checked_sub(top_left.x)?; let height = bottom_right.y.checked_sub(top_left.y)?;