Skip to content

Commit dc5bbe3

Browse files
committed
chore: Remove unnecessary format!() calls
1 parent 55b6643 commit dc5bbe3

File tree

1 file changed

+2
-3
lines changed
  • stackslib/src/net/api/tests

1 file changed

+2
-3
lines changed

stackslib/src/net/api/tests/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,7 @@ impl<'a> TestRPC<'a> {
338338
let mut tx_contract = StacksTransaction::new(
339339
TransactionVersion::Testnet,
340340
TransactionAuth::from_p2pkh(&privk1).unwrap(),
341-
TransactionPayload::new_smart_contract(&format!("hello-world"), contract, None)
342-
.unwrap(),
341+
TransactionPayload::new_smart_contract("hello-world", contract, None).unwrap(),
343342
);
344343

345344
tx_contract.chain_id = 0x80000000;
@@ -377,7 +376,7 @@ impl<'a> TestRPC<'a> {
377376
TransactionVersion::Testnet,
378377
TransactionAuth::from_p2pkh(&privk1).unwrap(),
379378
TransactionPayload::new_smart_contract(
380-
&format!("hello-world-unconfirmed"),
379+
"hello-world-unconfirmed",
381380
unconfirmed_contract,
382381
None,
383382
)

0 commit comments

Comments
 (0)