Skip to content

Commit

Permalink
style: apply PR feedback
Browse files Browse the repository at this point in the history
Cf. #330.

Co-authored-by: dan-da <[email protected]>
  • Loading branch information
Sword-Smith and dan-da committed Jan 16, 2025
1 parent 8b69daf commit 09671d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mine_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1629,7 +1629,7 @@ pub(crate) mod mine_loop_tests {
fn fast_kernel_mast_hash_agrees_with_mast_hash_function() {
let block_primitive_witness = deterministic_block_primitive_witness();
let a_block = block_primitive_witness.predecessor_block();
let (kernel_auth_path, header_auth_path) = precalculate_block_auth_paths(&a_block);
let (kernel_auth_path, header_auth_path) = precalculate_block_auth_paths(a_block);
assert_eq!(
a_block.kernel.mast_hash(),
fast_kernel_mast_hash(kernel_auth_path, header_auth_path, a_block.header().nonce)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ pub(crate) mod test {
}

impl BlockPrimitiveWitness {
pub(crate) fn predecessor_block(&self) -> Block {
self.predecessor_block.to_owned()
pub(crate) fn predecessor_block(&self) -> &Block {
&self.predecessor_block
}

pub(crate) fn arbitrary() -> BoxedStrategy<BlockPrimitiveWitness> {
Expand Down

0 comments on commit 09671d0

Please sign in to comment.