Skip to content

Commit

Permalink
fix: clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikol committed Feb 23, 2024
1 parent 831aafe commit ac88212
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/oracle/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl Config {
.collect::<Vec<IndexedChain>>(),
blockmeta_indexed_chains: config_file
.blockmeta_indexed_chains
.unwrap_or_else(|| HashMap::new())
.unwrap_or_default()
.into_iter()
.map(|(id, provider)| BlockmetaIndexedChain {
id,
Expand Down
2 changes: 1 addition & 1 deletion crates/oracle/src/runner/oracle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ impl Oracle {
);
let hash: BlockHash = block.id.clone().parse().unwrap();
let block_ptr = BlockPtr {
number: block.num as u64,
number: block.num,
hash: hash.0,
};
Some((chain_id.clone(), block_ptr))
Expand Down

0 comments on commit ac88212

Please sign in to comment.