From 92b215f2bb69df55d5a9f5fadef8dc0725a205c0 Mon Sep 17 00:00:00 2001 From: tottoto Date: Fri, 13 Oct 2023 01:02:35 +0900 Subject: [PATCH] chore(ci): check unused_imports and dead_code --- .github/workflows/CI.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 43891ee66d..922a27121a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -146,6 +146,8 @@ jobs: - name: check --feature-powerset run: cargo hack --no-dev-deps check --feature-powerset --depth 2 --skip ffi,tracing + env: + RUSTFLAGS: "-D dead_code -D unused_imports" ffi: name: Test C API (FFI)