Skip to content

Commit

Permalink
add rust-toolchain.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
anchpop committed Dec 26, 2024
1 parent 202454e commit b3a5db6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[toolchain]
channel = "1.82.0"
components = ["all"]
2 changes: 1 addition & 1 deletion src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ impl Eq for NearestNeighborsResult {}

impl PartialOrd for NearestNeighborsResult {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
self.similarity.partial_cmp(&other.similarity)
Some(self.cmp(other))
}
}

Expand Down

0 comments on commit b3a5db6

Please sign in to comment.