Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
anupsv committed Feb 11, 2025
1 parent 7b12a36 commit 8672001
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions primitives/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -722,11 +722,11 @@ pub fn compute_challenges_and_evaluate_polynomial(
pub fn usize_to_be_bytes(number: usize) -> [u8; 8] {
let mut result = [0u8; 8];
let number_bytes = number.to_be_bytes();

if number_bytes.len() == 4 {
result[4..].copy_from_slice(&number_bytes);
} else {
result.copy_from_slice(&number_bytes);
}
result
}
}

0 comments on commit 8672001

Please sign in to comment.