Skip to content

Commit

Permalink
Fix lint (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xh3rman committed Jun 18, 2024
1 parent bb4a988 commit b13e340
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/diesel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
RUSTC_WRAPPER: "sccache"

jobs:
unit_test:
check_schema:
runs-on: ubuntu-latest
defaults:
run:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Clippy check
name: Clippy
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

Expand Down
2 changes: 2 additions & 0 deletions apps/api/src/node_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand All @@ -11,6 +12,7 @@ impl Client {
Self { database }
}

#[allow(dead_code)]
pub async fn get_nodes(&mut self) -> Result<NodesResponse, Box<dyn Error>> {
let nodes = self.database.get_nodes()?;
let version = self.database.get_nodes_version()?;
Expand Down

0 comments on commit b13e340

Please sign in to comment.