Просмотр исходного кода

Remove unused variable from two tests

Ian Goldberg 1 месяц назад
Родитель
Сommit
125461ef37
2 измененных файлов с 0 добавлено и 2 удалено
  1. 0 1
      tests/threshold.rs
  2. 0 1
      tests/threshold_pubscalars.rs

+ 0 - 1
tests/threshold.rs

@@ -23,7 +23,6 @@ fn threshold_test() -> sigma_proofs::errors::Result<()> {
     let G4 = G::hash_from_bytes::<Sha512>(b"Generator G4");
     let G4 = G::hash_from_bytes::<Sha512>(b"Generator G4");
     let G5 = G::hash_from_bytes::<Sha512>(b"Generator G5");
     let G5 = G::hash_from_bytes::<Sha512>(b"Generator G5");
     let r = Scalar::random(&mut rng);
     let r = Scalar::random(&mut rng);
-    let y = Scalar::random(&mut rng);
 
 
     // Iterate over all combinations of 5 bits
     // Iterate over all combinations of 5 bits
     for true_pattern in 0u32..32 {
     for true_pattern in 0u32..32 {

+ 0 - 1
tests/threshold_pubscalars.rs

@@ -23,7 +23,6 @@ fn threshold_pubscalars_test() -> sigma_proofs::errors::Result<()> {
     let G4 = G::hash_from_bytes::<Sha512>(b"Generator G4");
     let G4 = G::hash_from_bytes::<Sha512>(b"Generator G4");
     let G5 = G::hash_from_bytes::<Sha512>(b"Generator G5");
     let G5 = G::hash_from_bytes::<Sha512>(b"Generator G5");
     let r = Scalar::random(&mut rng);
     let r = Scalar::random(&mut rng);
-    let y = Scalar::random(&mut rng);
 
 
     // Iterate over all combinations of 5 bits
     // Iterate over all combinations of 5 bits
     for true_pattern in 0u32..32 {
     for true_pattern in 0u32..32 {