From 90752ebee164efea738272d162c93edc56e0fc10 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 25 Feb 2021 11:38:46 -0500 Subject: distance: Move a bound from a where clause to Self::Value directly --- src/distance.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/distance.rs b/src/distance.rs index 680f11f..13bbee0 100644 --- a/src/distance.rs +++ b/src/distance.rs @@ -38,11 +38,10 @@ where Self: Copy, Self: Into<::Value>, Self: PartialOrd<::Value>, - ::Value: PartialOrd, Self: PartialOrd, { /// The type of actual numerical distances. - type Value: Value; + type Value: Value + PartialOrd; /// Get the real numerical value of this distance. fn value(self) -> Self::Value { -- cgit v1.2.3