Skip to content

Commit

Permalink
addressing map to cloned refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
setzeus committed Jan 23, 2024
1 parent 9f86041 commit 5d94131
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions stackslib/src/chainstate/stacks/boot/pox_4_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1854,10 +1854,7 @@ fn stack_increase() {
let latest_block = peer.tenure_with_txs(&txs, &mut coinbase_nonce);
let stacker_transactions = get_last_block_sender_transactions(&observer, alice_address);

let actual_result = stacker_transactions
.first()
.map(|tx| tx.result.clone())
.unwrap();
let actual_result = stacker_transactions.first().cloned().unwrap().result;

let expected_result = Value::okay(Value::Tuple(
TupleData::from_data(vec![
Expand Down Expand Up @@ -1947,10 +1944,7 @@ fn delegate_stack_increase() {
let delegate_transactions =
get_last_block_sender_transactions(&observer, bob_delegate_address.into());

let actual_result = delegate_transactions
.first()
.map(|tx| tx.result.clone())
.unwrap();
let actual_result = delegate_transactions.first().cloned().unwrap().result;

let expected_result = Value::okay(Value::Tuple(
TupleData::from_data(vec![
Expand Down

0 comments on commit 5d94131

Please sign in to comment.