Skip to content

Commit 4a0f644

Browse files
Merge branch 'master' of github.com:rust-bio/rust-bio-tools
2 parents b6b0a66 + 469b9f3 commit 4a0f644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bcf/match_variants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pub fn match_variants(
8383
let var = Variant::new(&mut rec, &mut i)?;
8484
let matching = var.alleles.iter().map(|a| {
8585
if let Some(range) = index.range(chrom, pos) {
86-
for v in range.map(|(_, idx_vars)| idx_vars).flatten() {
86+
for v in Itertools::flatten(range.map(|(_, idx_vars)| idx_vars)) {
8787
if let Some(id) = var.matches(v, a, max_dist, max_len_diff) {
8888
return id as i32;
8989
}

0 commit comments

Comments
 (0)