Skip to content

Commit 62f7223

Browse files
committed
fix(clippy): resolve unused imports and deprecated TempDir method
1 parent b245128 commit 62f7223

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

bin/flashstat-watchtower-test/tests/watchtower_integration.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ struct Fixture {
2323
impl Fixture {
2424
async fn new() -> Self {
2525
let dir = tempdir().unwrap();
26-
let storage: Arc<dyn FlashStorage> =
27-
Arc::new(RedbStorage::new(dir.path().to_owned().join("test.db").to_str().unwrap()).unwrap());
26+
let storage: Arc<dyn FlashStorage> = Arc::new(
27+
RedbStorage::new(dir.path().to_owned().join("test.db").to_str().unwrap()).unwrap()
28+
);
2829

2930
let config = Config {
3031
rpc: RpcConfig {

bin/flashstat/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fn init_logging() {
1010

1111
fn load_configuration() -> Result<Config> {
1212
let config = Config::load().context(
13-
"Failed to load configuration. Ensure flashstat.toml exists or env vars are set.",
13+
"Failed to load configuration. Ensure flashstat.toml exists or env vars are set!",
1414
)?;
1515
info!("🏮 Config loaded: WS={}", config.rpc.ws_url);
1616
Ok(config)

crates/flashstat-core/src/monitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ fn build_conflict_analysis(
607607
mod tests {
608608
use super::*;
609609
use chrono::Utc;
610-
use ethers::types::{Address, Block, Bytes, Transaction, H256, U256};
610+
use ethers::types::{Address, Block, Bytes, H256, Transaction, U256};
611611
use flashstat_common::{BlockStatus, FlashBlock, ReorgSeverity, SequencerStats};
612612

613613
// ── Fixtures ──────────────────────────────────────────────────────────────

0 commit comments

Comments
 (0)