Skip to content

Commit b245128

Browse files
committed
fix(clippy): resolve unused imports and deprecated TempDir methods
1 parent 124242c commit b245128

4 files changed

Lines changed: 9 additions & 2 deletions

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@
33
data/
44
flashstat.toml
55
.env
6+
.idea
7+
.vscode
8+
.next
9+
.github
10+
11+
simple.md
File renamed without changes.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl Fixture {
2424
async fn new() -> Self {
2525
let dir = tempdir().unwrap();
2626
let storage: Arc<dyn FlashStorage> =
27-
Arc::new(RedbStorage::new(dir.into_path().join("test.db").to_str().unwrap()).unwrap());
27+
Arc::new(RedbStorage::new(dir.path().to_owned().join("test.db").to_str().unwrap()).unwrap());
2828

2929
let config = Config {
3030
rpc: RpcConfig {

crates/flashstat-core/src/monitor.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ pub(crate) fn extract_quote_from_block(block: &Block<H256>) -> Option<Bytes> {
418418

419419
/// Classifies a block-height conflict as either a soft reorg or an equivocation.
420420
/// Returns the severity and, if applicable, the `EquivocationEvent`.
421+
#[allow(clippy::collapsible_if)]
421422
fn classify_reorg(
422423
prev: &FlashBlock,
423424
sequencer_signature: &Option<Bytes>,
@@ -606,7 +607,7 @@ fn build_conflict_analysis(
606607
mod tests {
607608
use super::*;
608609
use chrono::Utc;
609-
use ethers::types::{Address, Block, BlockNumber, Bytes, H256, Transaction, U256};
610+
use ethers::types::{Address, Block, Bytes, Transaction, H256, U256};
610611
use flashstat_common::{BlockStatus, FlashBlock, ReorgSeverity, SequencerStats};
611612

612613
// ── Fixtures ──────────────────────────────────────────────────────────────

0 commit comments

Comments
 (0)