Skip to content

Commit 017fef5

Browse files
committed
chore: cargo fmt-stacks
1 parent e977aee commit 017fef5

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

stackslib/src/burnchains/affirmation.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,14 @@ fn inner_find_heaviest_block_commit_ptr(
788788
}
789789

790790
if let Some(last_vtxindex) = last_vtxindex.as_mut() {
791-
assert!(*last_vtxindex < opdata.vtxindex, "{} !< {} at block {} (op {:?})", *last_vtxindex, opdata.vtxindex, opdata.block_height, &opdata);
791+
assert!(
792+
*last_vtxindex < opdata.vtxindex,
793+
"{} !< {} at block {} (op {:?})",
794+
*last_vtxindex,
795+
opdata.vtxindex,
796+
opdata.block_height,
797+
&opdata
798+
);
792799
*last_vtxindex = opdata.vtxindex;
793800
} else {
794801
last_vtxindex = Some(opdata.vtxindex);

stackslib/src/burnchains/db.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,8 @@ impl<'a> BurnchainDBTransaction<'a> {
437437
) -> Result<(), BurnchainError> {
438438
// find all block-commits for this block
439439
let commits: Vec<LeaderBlockCommitOp> = {
440-
let block_ops_qry = "SELECT DISTINCT * FROM burnchain_db_block_ops WHERE block_hash = ?";
440+
let block_ops_qry =
441+
"SELECT DISTINCT * FROM burnchain_db_block_ops WHERE block_hash = ?";
441442
let block_ops = query_rows(&self.sql_tx, block_ops_qry, &[&hdr.block_hash])?;
442443
block_ops
443444
.into_iter()
@@ -1155,7 +1156,8 @@ impl BurnchainDB {
11551156
burn_header_hash: &BurnchainHeaderHash,
11561157
txid: &Txid,
11571158
) -> Option<BlockstackOperationType> {
1158-
let qry = "SELECT DISTINCT op FROM burnchain_db_block_ops WHERE txid = ?1 AND block_hash = ?2";
1159+
let qry =
1160+
"SELECT DISTINCT op FROM burnchain_db_block_ops WHERE txid = ?1 AND block_hash = ?2";
11591161
let args: &[&dyn ToSql] = &[txid, burn_header_hash];
11601162

11611163
match query_row(conn, qry, args) {

0 commit comments

Comments
 (0)