Skip to content

Commit

Permalink
fix: clippy + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Jul 2, 2024
1 parent 10225cd commit 9d0d97c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ rust.rust_2018_idioms = "deny"
rustdoc.all = "warn"

[lints.clippy]
all = "warn"
missing_const_for_fn = "warn"
use_self = "warn"
option_if_let_else = "warn"
Expand Down Expand Up @@ -49,4 +48,4 @@ url = "2"

[dev-dependencies]
alloy-rpc-client = { version = "0.1.2" }
alloy-transport-http = { version = "0.1.2" }
alloy-transport-http = { version = "0.1.2" }
4 changes: 2 additions & 2 deletions src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -706,9 +706,9 @@ impl DatabaseRef for SharedBackend {

#[cfg(test)]
mod tests {
use alloy_provider::{ProviderBuilder, RootProvider};
use crate::cache::{BlockchainDbMeta, JsonBlockCacheDB};
use super::*;
use crate::cache::{BlockchainDbMeta, JsonBlockCacheDB};
use alloy_provider::{ProviderBuilder, RootProvider};
use alloy_rpc_client::ClientBuilder;
use alloy_transport_http::{Client, Http};
use std::{collections::BTreeSet, path::PathBuf};
Expand Down
2 changes: 1 addition & 1 deletion src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -616,4 +616,4 @@ mod tests {

let _s = serde_json::to_string(&cache).unwrap();
}
}
}

0 comments on commit 9d0d97c

Please sign in to comment.