summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-02-25 11:38:46 -0500
committerTavian Barnes <tavianator@tavianator.com>2021-02-25 11:38:46 -0500
commit90752ebee164efea738272d162c93edc56e0fc10 (patch)
treeb6bcf673af1e56bdf44508a3932c3eae2390a85d /src
parent15ec99c64f65da7966b4282ff94fee0a611c23df (diff)
downloadacap-90752ebee164efea738272d162c93edc56e0fc10.tar.xz
distance: Move a bound from a where clause to Self::Value directly
Diffstat (limited to 'src')
-rw-r--r--src/distance.rs3
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 {