Skip to content

Commit 8cba127

Browse files
committed
cargo fmt
1 parent c55e7ba commit 8cba127

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

src/btbe.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ impl StoredEntry {
227227
// peek at the last tx bundle added (read the dummy one if its void)
228228
let last_tx_bundle_result = self.get_tx_bundle_at_unchecked(storage, bundle_pos);
229229
if last_tx_bundle_result.is_err() {
230-
return Err(StdError::generic_err("missing tx bundle while merging dwb entry!"));
230+
return Err(StdError::generic_err(
231+
"missing tx bundle while merging dwb entry!",
232+
));
231233
}
232234

233235
// unwrap

src/gas_tracker.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,7 @@ impl<'a, 'b> GasGroup<'a, 'b> {
7373
let gas = self.tracker.api.check_gas();
7474
let log_entry = (
7575
format!("gas.{}", self.name,),
76-
format!(
77-
"{}:{}:{}",
78-
self.index,
79-
gas.unwrap_or(0u64),
80-
comment
81-
),
76+
format!("{}:{}:{}", self.index, gas.unwrap_or(0u64), comment),
8277
);
8378
self.tracker.logs.push(log_entry);
8479
self.index += 1;

src/query.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,7 @@ pub fn query_transactions(
217217
let mut bundle_idx = bundle_idx - 1;
218218
if let Some(entry) = account_stored_entry {
219219
loop {
220-
let tx_bundle =
221-
entry.get_tx_bundle_at(deps.storage, bundle_idx)?;
220+
let tx_bundle = entry.get_tx_bundle_at(deps.storage, bundle_idx)?;
222221
// only look if head node is not null
223222
if tx_bundle.head_node > 0 {
224223
let head_node = TX_NODES

0 commit comments

Comments
 (0)