Преглед изворни кода

added _ prefix to unused variables in unimplemented functions

rachel-rose пре 5 година
родитељ
комит
079e876d0d
1 измењених фајлова са 7 додато и 7 уклоњено
  1. 7 7
      src/vm_serial.rs

+ 7 - 7
src/vm_serial.rs

@@ -14,7 +14,7 @@ impl_vec!((String, VariableIndex));
 impl_vec!((String, bls::Scalar));
 impl_vec!((String, bls::Scalar));
 
 
 impl Encodable for ZKContract {
 impl Encodable for ZKContract {
-    fn encode<S: io::Write>(&self, s: S) -> Result<usize> {
+    fn encode<S: io::Write>(&self, _s: S) -> Result<usize> {
         unimplemented!();
         unimplemented!();
         Ok(0)
         Ok(0)
     }
     }
@@ -85,7 +85,7 @@ impl Decodable for groth16::Proof<bls::Bls12> {
 }
 }
 
 
 impl Encodable for (AllocType, VariableIndex) {
 impl Encodable for (AllocType, VariableIndex) {
-    fn encode<S: io::Write>(&self, s: S) -> Result<usize> {
+    fn encode<S: io::Write>(&self, _s: S) -> Result<usize> {
         //let len = self.x.encode(&mut s)?;
         //let len = self.x.encode(&mut s)?;
         //Ok(len + self.y.encode(s)?)
         //Ok(len + self.y.encode(s)?)
         unimplemented!();
         unimplemented!();
@@ -109,7 +109,7 @@ impl Decodable for (AllocType, VariableIndex) {
 impl_vec!((AllocType, VariableIndex));
 impl_vec!((AllocType, VariableIndex));
 
 
 impl Encodable for VariableIndex {
 impl Encodable for VariableIndex {
-    fn encode<S: io::Write>(&self, s: S) -> Result<usize> {
+    fn encode<S: io::Write>(&self, _s: S) -> Result<usize> {
         unimplemented!();
         unimplemented!();
         Ok(0)
         Ok(0)
     }
     }
@@ -122,7 +122,7 @@ impl Decodable for VariableIndex {
 }
 }
 
 
 impl Encodable for VariableRef {
 impl Encodable for VariableRef {
-    fn encode<S: io::Write>(&self, s: S) -> Result<usize> {
+    fn encode<S: io::Write>(&self, _s: S) -> Result<usize> {
         unimplemented!();
         unimplemented!();
         Ok(0)
         Ok(0)
     }
     }
@@ -140,7 +140,7 @@ impl Decodable for VariableRef {
 }
 }
 
 
 impl Encodable for CryptoOperation {
 impl Encodable for CryptoOperation {
-    fn encode<S: io::Write>(&self, s: S) -> Result<usize> {
+    fn encode<S: io::Write>(&self, _s: S) -> Result<usize> {
         unimplemented!();
         unimplemented!();
         Ok(0)
         Ok(0)
     }
     }
@@ -189,7 +189,7 @@ impl Decodable for CryptoOperation {
             )),
             )),
             12 => Ok(Self::DumpAlloc),
             12 => Ok(Self::DumpAlloc),
             13 => Ok(Self::DumpLocal),
             13 => Ok(Self::DumpLocal),
-            i => Err(Error::BadOperationType),
+            _i => Err(Error::BadOperationType),
         }
         }
     }
     }
 }
 }
@@ -197,7 +197,7 @@ impl Decodable for CryptoOperation {
 impl_vec!(CryptoOperation);
 impl_vec!(CryptoOperation);
 
 
 impl Encodable for ConstraintInstruction {
 impl Encodable for ConstraintInstruction {
-    fn encode<S: io::Write>(&self, s: S) -> Result<usize> {
+    fn encode<S: io::Write>(&self, _s: S) -> Result<usize> {
         unimplemented!();
         unimplemented!();
         Ok(0)
         Ok(0)
     }
     }