Skip to content

Commit

Permalink
Nits
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Jun 6, 2024
1 parent f6a578e commit 07203f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions benches/speed_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn protocol(c: &mut Criterion) {
&blind_sig,
&blinding_result.secret,
blinding_result.msg_randomizer,
&msg,
msg,
&options,
)
.unwrap();
Expand All @@ -51,7 +51,7 @@ pub fn protocol(c: &mut Criterion) {
&blind_sig,
&blinding_result.secret,
blinding_result.msg_randomizer,
&msg,
msg,
&options,
)
.unwrap();
Expand Down
5 changes: 1 addition & 4 deletions src/num_padding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ impl ToBytesPadded for BigUint {
fn to_bytes_be_padded(&self, len: usize) -> Vec<u8> {
let v = self.to_bytes_be();
if len > v.len() {
iter::repeat(0)
.take(len - v.len())
.chain(v.into_iter())
.collect()
iter::repeat(0).take(len - v.len()).chain(v).collect()
} else {
v
}
Expand Down

0 comments on commit 07203f8

Please sign in to comment.