parazyd 2 лет назад
Родитель
Сommit
b48b58af03
3 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      bin/swapd/src/rpc.rs
  2. 1 1
      src/runtime/import/db.rs
  3. 1 1
      src/zk/debug.rs

+ 1 - 1
bin/swapd/src/rpc.rs

@@ -62,6 +62,6 @@ impl Swapd {
             return JsonError::new(ErrorCode::InvalidParams, None, id).into()
             return JsonError::new(ErrorCode::InvalidParams, None, id).into()
         }
         }
 
 
-        return JsonResponse::new(params[0].clone(), id).into()
+        JsonResponse::new(params[0].clone(), id).into()
     }
     }
 }
 }

+ 1 - 1
src/runtime/import/db.rs

@@ -16,7 +16,7 @@
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
  */
 
 
-use std::{io::Cursor, ops::Index};
+use std::io::Cursor;
 
 
 use darkfi_sdk::{
 use darkfi_sdk::{
     crypto::ContractId,
     crypto::ContractId,

+ 1 - 1
src/zk/debug.rs

@@ -78,7 +78,7 @@ pub fn export_witness_json<P: AsRef<Path>>(
 pub fn zkas_type_checks(
 pub fn zkas_type_checks(
     circuit: &ZkCircuit,
     circuit: &ZkCircuit,
     binary: &zkas::ZkBinary,
     binary: &zkas::ZkBinary,
-    instances: &Vec<pallas::Base>,
+    instances: &[pallas::Base],
 ) -> Result<()> {
 ) -> Result<()> {
     if circuit.witnesses.len() != binary.witnesses.len() {
     if circuit.witnesses.len() != binary.witnesses.len() {
         error!(
         error!(