From f0e2224544126e953ef85eb74b675c90e736b706 Mon Sep 17 00:00:00 2001 From: Greg Sleap Date: Mon, 2 Aug 2021 13:03:12 +0800 Subject: [PATCH] Swapping coverage CI back to (latest) nightly. Removed unneeded let from get_fine_chan_centres_array_hz --- .github/workflows/coverage.yml | 2 +- src/coarse_channel/mod.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 3d84e9b..908458e 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -17,7 +17,7 @@ jobs: uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: nightly-2021-05-09 + toolchain: nightly override: true components: llvm-tools-preview diff --git a/src/coarse_channel/mod.rs b/src/coarse_channel/mod.rs index 90dd7a6..193b75f 100644 --- a/src/coarse_channel/mod.rs +++ b/src/coarse_channel/mod.rs @@ -383,9 +383,8 @@ impl CoarseChannel { coarse_channels .iter() .flat_map(|coarse_chan| { - let chan_start_hz = coarse_chan.chan_start_hz; (0..num_fine_chans_per_coarse).map(move |fine_chan_idx| { - chan_start_hz as f64 + coarse_chan.chan_start_hz as f64 + ((fine_chan_idx as f64 + odd_even_adjustment) * fine_chan_width_hz as f64) + offset_hz })