diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ca390b..3d5b220 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,9 +22,9 @@ jobs: - name: Rust Cache uses: Swatinem/rust-cache@v2 - # - name: Format Check - # run: cargo fmt --all -- --check - + - name: Format Check + run: cargo fmt --all -- --check + - name: Clippy run: cargo clippy --all-targets --all-features -- -D warnings diff --git a/bin/flashstat-server/src/main.rs b/bin/flashstat-server/src/main.rs index 859edf7..5e37eaa 100644 --- a/bin/flashstat-server/src/main.rs +++ b/bin/flashstat-server/src/main.rs @@ -5,7 +5,7 @@ use flashstat_common::{ Config, FlashBlock, ReorgEvent, ReorgSeverity, SequencerStats, SystemHealth, }; use flashstat_db::FlashStorage; -use jsonrpsee::core::{async_trait, RpcResult}; +use jsonrpsee::core::{RpcResult, async_trait}; use jsonrpsee::server::ServerBuilder; use jsonrpsee::types::error::ErrorObjectOwned; use std::sync::Arc; diff --git a/bin/flashstat-tui/src/main.rs b/bin/flashstat-tui/src/main.rs index 11162c8..b815a4f 100644 --- a/bin/flashstat-tui/src/main.rs +++ b/bin/flashstat-tui/src/main.rs @@ -1,19 +1,19 @@ use crossterm::{ event::{self, DisableMouseCapture, EnableMouseCapture, Event, KeyCode}, execute, - terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen}, + terminal::{EnterAlternateScreen, LeaveAlternateScreen, disable_raw_mode, enable_raw_mode}, }; use eyre::Result; use flashstat_api::FlashApiClient; use flashstat_common::{FlashBlock, ReorgEvent, SequencerStats, SystemHealth}; use jsonrpsee::http_client::HttpClientBuilder; use ratatui::{ + Frame, Terminal, backend::CrosstermBackend, layout::{Constraint, Direction, Layout}, style::{Color, Modifier, Style}, text::{Line, Span}, widgets::{Block, Borders, List, ListItem, Paragraph}, - Frame, Terminal, }; use std::{ io,