瀏覽代碼

Remove unused variable from two tests

Ian Goldberg 1 月之前
父節點
當前提交
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 G5 = G::hash_from_bytes::<Sha512>(b"Generator G5");
     let r = Scalar::random(&mut rng);
-    let y = Scalar::random(&mut rng);
 
     // Iterate over all combinations of 5 bits
     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 G5 = G::hash_from_bytes::<Sha512>(b"Generator G5");
     let r = Scalar::random(&mut rng);
-    let y = Scalar::random(&mut rng);
 
     // Iterate over all combinations of 5 bits
     for true_pattern in 0u32..32 {