From 867a0e66f99ff5987a3639b4a4bdd478963fac9d Mon Sep 17 00:00:00 2001 From: Richard Neher Date: Thu, 7 Sep 2023 09:40:02 +0200 Subject: [PATCH] fix: reassign rather than redefine band_area in attempt loop to allow reporting after the loop --- packages_rs/nextclade/src/align/align.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages_rs/nextclade/src/align/align.rs b/packages_rs/nextclade/src/align/align.rs index fbdc72d07..37e97bfa2 100644 --- a/packages_rs/nextclade/src/align/align.rs +++ b/packages_rs/nextclade/src/align/align.rs @@ -67,7 +67,7 @@ pub fn align_nuc( let max_band_area = params.max_band_area; let mut attempt = 0; - let (stripes, band_area) = create_alignment_band( + let (mut stripes, mut band_area) = create_alignment_band( &seed_matches, qry_len as isize, ref_len as isize, @@ -89,7 +89,7 @@ pub fn align_nuc( minimal_bandwidth = max(2 * minimal_bandwidth, 1); attempt += 1; // make new band - let (stripes, band_area) = create_alignment_band( + (stripes, band_area) = create_alignment_band( &seed_matches, qry_len as isize, ref_len as isize,