Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
darwinzer0 committed Dec 20, 2024
1 parent c55e7ba commit 8cba127
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 3 additions & 1 deletion src/btbe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ impl StoredEntry {
// peek at the last tx bundle added (read the dummy one if its void)
let last_tx_bundle_result = self.get_tx_bundle_at_unchecked(storage, bundle_pos);
if last_tx_bundle_result.is_err() {
return Err(StdError::generic_err("missing tx bundle while merging dwb entry!"));
return Err(StdError::generic_err(
"missing tx bundle while merging dwb entry!",
));
}

// unwrap
Expand Down
7 changes: 1 addition & 6 deletions src/gas_tracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,7 @@ impl<'a, 'b> GasGroup<'a, 'b> {
let gas = self.tracker.api.check_gas();
let log_entry = (
format!("gas.{}", self.name,),
format!(
"{}:{}:{}",
self.index,
gas.unwrap_or(0u64),
comment
),
format!("{}:{}:{}", self.index, gas.unwrap_or(0u64), comment),
);
self.tracker.logs.push(log_entry);
self.index += 1;
Expand Down
3 changes: 1 addition & 2 deletions src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@ pub fn query_transactions(
let mut bundle_idx = bundle_idx - 1;
if let Some(entry) = account_stored_entry {
loop {
let tx_bundle =
entry.get_tx_bundle_at(deps.storage, bundle_idx)?;
let tx_bundle = entry.get_tx_bundle_at(deps.storage, bundle_idx)?;
// only look if head node is not null
if tx_bundle.head_node > 0 {
let head_node = TX_NODES
Expand Down

0 comments on commit 8cba127

Please sign in to comment.