From e252646fdd37abe47f239b48a12d4b64b50970d5 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:07:24 +0000
Subject: [PATCH] refactor: moved unknown_lints to the code

---
 .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 399b116d..77921cc2 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 -A unknown-lints
+        run: cargo clippy -- -D warnings
       - 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 -A unknown-lints
+        run: cargo clippy -- -D warnings
       - 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 56a8f2aa..80e2b961 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 -A unknown-lints; fi
+    - if [[ $RUST_VERSION != nightly ]]; then cargo clippy -- -D warnings; fi
     - cargo build
     - cargo build --release
 
diff --git a/frontends/sdl/src/main.rs b/frontends/sdl/src/main.rs
index be42fef2..f669630d 100644
--- a/frontends/sdl/src/main.rs
+++ b/frontends/sdl/src/main.rs
@@ -1,4 +1,4 @@
-#![allow(clippy::uninlined_format_args)]
+#![allow(clippy::uninlined_format_args, unknown_lints)]
 
 pub mod data;
 pub mod util;
diff --git a/src/lib.rs b/src/lib.rs
index fbcf0572..24a551ab 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,4 +1,4 @@
-#![allow(clippy::uninlined_format_args)]
+#![allow(clippy::uninlined_format_args, unknown_lints)]
 
 pub mod cpu;
 pub mod data;
-- 
GitLab