diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..50e16fa --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel = "1.82.0" +components = ["all"] diff --git a/src/db.rs b/src/db.rs index ee2d7ff..53dfd86 100644 --- a/src/db.rs +++ b/src/db.rs @@ -611,7 +611,7 @@ impl Eq for NearestNeighborsResult {} impl PartialOrd for NearestNeighborsResult { fn partial_cmp(&self, other: &Self) -> Option { - self.similarity.partial_cmp(&other.similarity) + Some(self.cmp(other)) } }