Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
moricho committed Jul 21, 2024
1 parent e5efe6d commit 5d86b04
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions crates/provider/src/ext/trace/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mod trace;
mod api;
mod with_block;

pub use trace::*;
pub use api::*;
pub use with_block::*;
2 changes: 1 addition & 1 deletion crates/provider/src/ext/trace/with_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ where
}

/// Get the trace types.
pub fn get_trace_types(&self) -> &HashSet<TraceType> {
pub const fn get_trace_types(&self) -> &HashSet<TraceType> {
&self.trace_types
}
}
Expand Down
4 changes: 2 additions & 2 deletions crates/provider/src/provider/with_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,11 @@ where
{
fn from(trace_rpc: TraceRpcWithBlock<T, Params, Resp, Output, Map>) -> Self {
let rpc = trace_rpc.deref();
RpcWithBlock {
Self {
client: rpc.client.clone(),
method: rpc.method.clone(),
params: rpc.params.clone(),
block_id: rpc.block_id.clone(),
block_id: rpc.block_id,
trace_types: trace_rpc.get_trace_types().clone(),
map: rpc.map,
_pd: rpc._pd,
Expand Down

0 comments on commit 5d86b04

Please sign in to comment.