From 724289935b31a6ce1258fe0086ea55278c1f833c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com> Date: Sun, 29 Jan 2023 08:10:49 +0000 Subject: [PATCH] Revert "refactor: moved unknown_lints to the code" This reverts commit e252646fdd37abe47f239b48a12d4b64b50970d5. --- .github/workflows/main.yml | 4 ++-- .gitlab-ci.yml | 2 +- frontends/sdl/src/main.rs | 2 +- src/lib.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 77921cc2..399b116d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,7 +34,7 @@ jobs: - name: Verify Rust code format run: cargo fmt --all -- --check - name: Verify Rust code linting - run: cargo clippy -- -D warnings + run: cargo clippy -- -D warnings -A unknown-lints - name: Build development version run: cargo build - name: Build release version @@ -70,7 +70,7 @@ jobs: - name: Verify Rust code format run: cargo fmt --all -- --check - name: Verify Rust code linting - run: cargo clippy -- -D warnings + run: cargo clippy -- -D warnings -A unknown-lints - name: Install wasm-pack run: cargo install wasm-pack - name: Build WASM Web binary diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 80e2b961..56a8f2aa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,7 +34,7 @@ build-rust: - rustup component add clippy - rustc --version - cargo fmt --all -- --check - - if [[ $RUST_VERSION != nightly ]]; then cargo clippy -- -D warnings; fi + - if [[ $RUST_VERSION != nightly ]]; then cargo clippy -- -D warnings -A unknown-lints; fi - cargo build - cargo build --release diff --git a/frontends/sdl/src/main.rs b/frontends/sdl/src/main.rs index f669630d..be42fef2 100644 --- a/frontends/sdl/src/main.rs +++ b/frontends/sdl/src/main.rs @@ -1,4 +1,4 @@ -#![allow(clippy::uninlined_format_args, unknown_lints)] +#![allow(clippy::uninlined_format_args)] pub mod data; pub mod util; diff --git a/src/lib.rs b/src/lib.rs index 24a551ab..fbcf0572 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -#![allow(clippy::uninlined_format_args, unknown_lints)] +#![allow(clippy::uninlined_format_args)] pub mod cpu; pub mod data; -- GitLab