From 71a0bb7a338025c5b3f8b960516c3f9196852ca0 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 17 Dec 2024 20:33:14 +0100 Subject: [PATCH] Make `Point`/`Vector` addition generic --- experiments/2024-12-09/src/math/point.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/experiments/2024-12-09/src/math/point.rs b/experiments/2024-12-09/src/math/point.rs index 5703fb337..6800c2b75 100644 --- a/experiments/2024-12-09/src/math/point.rs +++ b/experiments/2024-12-09/src/math/point.rs @@ -18,9 +18,9 @@ where } } -impl ops::Add for Point<3> +impl ops::Add for Point where - T: Into>, + T: Into>, { type Output = Self;