Skip to content

Commit

Permalink
clippy: byte_char_slices (#2494)
Browse files Browse the repository at this point in the history
fix byte_char_slices
  • Loading branch information
yihau authored Aug 9, 2024
1 parent 15c5dcb commit 2cc0b4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions zk-sdk/src/range_proof/generators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ impl RangeProofGens {
}

self.G_vec.extend(
&mut GeneratorsChain::new(&[b'G'])
&mut GeneratorsChain::new(b"G")
.fast_forward(self.gens_capacity)
.take(new_capacity - self.gens_capacity),
);

self.H_vec.extend(
&mut GeneratorsChain::new(&[b'H'])
&mut GeneratorsChain::new(b"H")
.fast_forward(self.gens_capacity)
.take(new_capacity - self.gens_capacity),
);
Expand Down
4 changes: 2 additions & 2 deletions zk-token-sdk/src/range_proof/generators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ impl BulletproofGens {
}

self.G_vec.extend(
&mut GeneratorsChain::new(&[b'G'])
&mut GeneratorsChain::new(b"G")
.fast_forward(self.gens_capacity)
.take(new_capacity - self.gens_capacity),
);

self.H_vec.extend(
&mut GeneratorsChain::new(&[b'H'])
&mut GeneratorsChain::new(b"H")
.fast_forward(self.gens_capacity)
.take(new_capacity - self.gens_capacity),
);
Expand Down

0 comments on commit 2cc0b4a

Please sign in to comment.