Skip to content

Commit

Permalink
additional clippy fixes for advanced feature
Browse files Browse the repository at this point in the history
  • Loading branch information
raventid committed Feb 9, 2024
1 parent 534ecca commit 97d5013
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ mod advanced;
pub mod simple;

#[cfg(feature = "advanced")]
pub use advanced::{aurora, near, process_tx_data, run, Cli, Command};
pub use advanced::{run, Cli};

#[cfg(feature = "simple")]
pub use simple::{command, run, Cli};
Expand Down
2 changes: 1 addition & 1 deletion src/transaction_reader/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ fn get_gas_profile(value: &Value) -> Option<HashMap<String, u128>> {
}
})?;
let profile = get_recursive(outcome.get("metadata")?, &["gas_profile"])?.as_array()?;
for entry in profile.iter() {
for entry in profile {
let entry = entry.as_object()?;
let name = entry.get("cost")?.as_str()?;
let amount = entry.get("gas_used")?.as_str()?;
Expand Down

0 comments on commit 97d5013

Please sign in to comment.