From b6acff729a9ced8ffb1a5897fb44194d51bdd514 Mon Sep 17 00:00:00 2001 From: AkiyukiOkayasu Date: Sat, 17 Aug 2024 00:03:08 +0900 Subject: [PATCH 1/2] update ci --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 From 9a83968708837b3b0fcb760a998ff07d1e55502a Mon Sep 17 00:00:00 2001 From: AkiyukiOkayasu Date: Sat, 17 Aug 2024 00:07:12 +0900 Subject: [PATCH 2/2] clippy --- examples/beep_imaadpcm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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::(); } }