diff --git a/.clippy.toml b/.clippy.toml new file mode 100644 index 0000000..69a3f0b --- /dev/null +++ b/.clippy.toml @@ -0,0 +1,3 @@ +allow-expect-in-tests = true +allow-unwrap-in-tests = true +allow-dbg-in-tests = true diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index 4926101..a4cc44f 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -23,10 +23,5 @@ jobs: - name: Rust Cache uses: Swatinem/rust-cache@v2 - - name: Run Clippy Allow Warning - if: ${{ ! (github.ref == 'refs/heads/master' || github.event_name == 'pull_request') }} - run: cargo clippy --locked - - name: Run Clippy Deny Warning - if: github.ref == 'refs/heads/master' || github.event_name == 'pull_request' - run: cargo clippy --locked -- -D warnings + run: cargo clippy --tests --locked -- -D warnings