Apply suggestions from code review

This commit is contained in:
Kris Nuttycombe 2021-07-09 10:44:25 -06:00
parent e588d1d790
commit a4847132fa
1 changed files with 3 additions and 3 deletions

View File

@ -118,7 +118,7 @@ pub extern "C" fn orchard_merkle_frontier_root(
.expect("Cannot return to the null pointer.")
};
root_ret.copy_from_slice(&tree.root().to_bytes());
*root_ret = tree.root().to_bytes();
}
#[no_mangle]
@ -273,7 +273,7 @@ pub extern "C" fn incremental_sinsemilla_tree_root(
.expect("Cannot return to the null pointer.")
};
root_ret.copy_from_slice(&tree.root().to_bytes());
*root_ret = tree.root().to_bytes();
}
#[no_mangle]
@ -288,5 +288,5 @@ pub extern "C" fn incremental_sinsemilla_tree_empty_root(root_ret: *mut [u8; 32]
let digest = MerkleCrhOrchardOutput::empty_root(altitude).to_bytes();
root_ret.copy_from_slice(&digest);
*root_ret = digest;
}