diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index d735dbf59..87b6cd6d8 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -38,3 +38,6 @@ jobs: - name: Run tests run: make test + + - name: Run lints + run: make lint diff --git a/Makefile b/Makefile index 2d99b61c4..e1f744275 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ test: install | emily-client && pnpm --recursive test lint: install | emily-client - cargo clippy \ + cargo clippy -- -D warnings \ && pnpm --recursive run lint clean: diff --git a/blocklist-client/src/api/handlers.rs b/blocklist-client/src/api/handlers.rs index ecba67062..0cab620c0 100644 --- a/blocklist-client/src/api/handlers.rs +++ b/blocklist-client/src/api/handlers.rs @@ -1,4 +1,4 @@ -use crate::client::client; +use crate::client; use crate::common::{Error, ErrorResponse}; use crate::config::RiskAnalysisConfig; use reqwest::Client; diff --git a/blocklist-client/src/client/client.rs b/blocklist-client/src/client.rs similarity index 89% rename from blocklist-client/src/client/client.rs rename to blocklist-client/src/client.rs index 083a33f65..dfd65e3f3 100644 --- a/blocklist-client/src/client/client.rs +++ b/blocklist-client/src/client.rs @@ -12,7 +12,7 @@ pub async fn check_address( let response = client .get(&api_url) - .header("Token", format!("{}", config.api_key)) + .header("Token", config.api_key.to_string()) .send() .await?; diff --git a/blocklist-client/src/client/mod.rs b/blocklist-client/src/client/mod.rs deleted file mode 100644 index b9babe5bc..000000000 --- a/blocklist-client/src/client/mod.rs +++ /dev/null @@ -1 +0,0 @@ -pub mod client;