diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 135b1b8..1907fa8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -45,6 +45,10 @@ jobs: with: command: clippy args: -- -D warnings + - uses: actions-rs/cargo@v1 + with: + command: clippy + args: --tests -- -D warnings fmt: name: Rustfmt runs-on: ubuntu-latest diff --git a/src/rust_api.rs b/src/rust_api.rs index 3fe279b..ca8837c 100644 --- a/src/rust_api.rs +++ b/src/rust_api.rs @@ -788,7 +788,7 @@ mod tests { fn test_as_ref() { let sequence = dna("ac"); let nucleotides: &[NucleotideAmbiguous] = sequence.as_ref(); - assert!(nucleotides == &[NucleotideAmbiguous::A, NucleotideAmbiguous::C]); + assert!(nucleotides == [NucleotideAmbiguous::A, NucleotideAmbiguous::C]); } #[cfg(feature = "serde")]