diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d4520a8..2c683ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: toolchain: - stable @@ -35,7 +36,7 @@ jobs: - name: Build run: cargo build --verbose - name: Clippy - run: cargo clippy --all-targets --all-features + run: cargo clippy --all-targets --all-features -- -D warnings - name: Run tests run: cargo test --verbose - name: Run examples diff --git a/examples/beep_imaadpcm.rs b/examples/beep_imaadpcm.rs index 2421a1e..08e3946 100644 --- a/examples/beep_imaadpcm.rs +++ b/examples/beep_imaadpcm.rs @@ -29,7 +29,7 @@ fn main() { let buf = buffer.as_mut_slice(); match player.get_next_frame(buf) { Ok(_) => { - for (_ch, sample) in frame.iter_mut().enumerate() { + for sample in frame.iter_mut() { *sample = buf[0].to_num::(); } }