diff options
-rw-r--r-- | src/distance.rs | 3 |
1 files changed, 1 insertions, 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<<Self as Distance>::Value>, Self: PartialOrd<<Self as Distance>::Value>, - <Self as Distance>::Value: PartialOrd<Self>, Self: PartialOrd, { /// The type of actual numerical distances. - type Value: Value; + type Value: Value + PartialOrd<Self>; /// Get the real numerical value of this distance. fn value(self) -> Self::Value { |