From b13e340a7c2d69891e82d0f10eb0841b2fc76264 Mon Sep 17 00:00:00 2001 From: 0xh3rman <119309671+0xh3rman@users.noreply.github.com> Date: Wed, 19 Jun 2024 07:38:50 +0900 Subject: [PATCH] Fix lint (#218) --- .github/workflows/diesel.yml | 2 +- .github/workflows/lint.yml | 4 +--- apps/api/src/node_client.rs | 2 ++ 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/diesel.yml b/.github/workflows/diesel.yml index e15b6bf0..e1b3d956 100644 --- a/.github/workflows/diesel.yml +++ b/.github/workflows/diesel.yml @@ -12,7 +12,7 @@ env: RUSTC_WRAPPER: "sccache" jobs: - unit_test: + check_schema: runs-on: ubuntu-latest defaults: run: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 93064187..3ec1ca9a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,7 +1,5 @@ -name: Clippy check +name: Clippy on: - push: - branches: ["main"] pull_request: branches: ["main"] diff --git a/apps/api/src/node_client.rs b/apps/api/src/node_client.rs index 1a98c20a..62166a10 100644 --- a/apps/api/src/node_client.rs +++ b/apps/api/src/node_client.rs @@ -2,6 +2,7 @@ use primitives::node::{ChainNodes, Node, NodeStatus, NodesResponse}; use std::{collections::HashMap, error::Error}; use storage::DatabaseClient; +#[allow(dead_code)] pub struct Client { database: DatabaseClient, } @@ -11,6 +12,7 @@ impl Client { Self { database } } + #[allow(dead_code)] pub async fn get_nodes(&mut self) -> Result> { let nodes = self.database.get_nodes()?; let version = self.database.get_nodes_version()?;