From 708eaa33d32348d56a72b5745a2d7d65fe275b48 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Sun, 20 Feb 2022 12:18:35 +0100 Subject: [PATCH] Use `Epsilon` of underlying type in `approx` impls --- src/math/point.rs | 2 +- src/math/vector.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/math/point.rs b/src/math/point.rs index 1e05658f0..eb1345dca 100644 --- a/src/math/point.rs +++ b/src/math/point.rs @@ -166,7 +166,7 @@ impl ops::Mul for Point { } impl AbsDiffEq for Point { - type Epsilon = ::Epsilon; + type Epsilon = as AbsDiffEq>::Epsilon; fn default_epsilon() -> Self::Epsilon { f64::default_epsilon() diff --git a/src/math/vector.rs b/src/math/vector.rs index 7262820a2..cff6e30f6 100644 --- a/src/math/vector.rs +++ b/src/math/vector.rs @@ -169,7 +169,7 @@ impl ops::Div for Vector { } impl AbsDiffEq for Vector { - type Epsilon = ::Epsilon; + type Epsilon = ::Epsilon; fn default_epsilon() -> Self::Epsilon { f64::default_epsilon()