From 2cc0b4ac0fec0388a9cb972ce15e875c21e995f6 Mon Sep 17 00:00:00 2001 From: Yihau Chen Date: Fri, 9 Aug 2024 15:09:35 +0800 Subject: [PATCH] clippy: byte_char_slices (#2494) fix byte_char_slices --- zk-sdk/src/range_proof/generators.rs | 4 ++-- zk-token-sdk/src/range_proof/generators.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zk-sdk/src/range_proof/generators.rs b/zk-sdk/src/range_proof/generators.rs index f67baf5fef2d4b..901f4f83027a41 100644 --- a/zk-sdk/src/range_proof/generators.rs +++ b/zk-sdk/src/range_proof/generators.rs @@ -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), ); diff --git a/zk-token-sdk/src/range_proof/generators.rs b/zk-token-sdk/src/range_proof/generators.rs index da2dcbcf7cb734..b33ce32001a359 100644 --- a/zk-token-sdk/src/range_proof/generators.rs +++ b/zk-token-sdk/src/range_proof/generators.rs @@ -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), );