diff --git a/Cargo.toml b/Cargo.toml index 3a37d93..398c0e0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tcrdist_rs" -version = "0.1.8" +version = "0.1.9" edition = "2021" license = "MIT" description = "Rust tcrdist routines, including SMID-accelerated edit distances from triple_accel." diff --git a/src/distance.rs b/src/distance.rs index ee3625c..f5db11d 100644 --- a/src/distance.rs +++ b/src/distance.rs @@ -1397,7 +1397,7 @@ pub fn str_neighbor_many_to_many( .fold(Vec::new(), |mut v, (jdx, &s2)| { let dist: u32 = metric_fn(s1.as_bytes(), s2.as_bytes()); if dist <= threshold { - v.push([idx, idx + jdx, dist as usize]); + v.push([idx, jdx, dist as usize]); } v })