Skip to content

Commit

Permalink
fix Itertools::flatten regression in nightly. (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril authored and johanneskoester committed Jun 24, 2018
1 parent c7e88cd commit 469b9f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bcf/match_variants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub fn match_variants(
let var = Variant::new(&mut rec, &mut i)?;
let matching = var.alleles.iter().map(|a| {
if let Some(range) = index.range(chrom, pos) {
for v in range.map(|(_, idx_vars)| idx_vars).flatten() {
for v in Itertools::flatten(range.map(|(_, idx_vars)| idx_vars)) {
if let Some(id) = var.matches(v, a, max_dist, max_len_diff) {
return id as i32;
}
Expand Down

0 comments on commit 469b9f3

Please sign in to comment.