clear warning messages

This commit is contained in:
ghassmo
2021-06-30 20:32:47 +03:00
parent 8197b8bf16
commit e334d2ca2b
6 changed files with 10 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
use async_std::sync::Arc;
//use drk::rpc::
use drk::rpc::adapter::{AdapterPtr, RpcAdapter};
use drk::rpc::adapter::{RpcAdapter};
use drk::rpc::jsonserver;
//use drk::rpc::options::ProgramOptions;
use rand::rngs::OsRng;
@@ -27,7 +27,7 @@ use bellman::groth16;
use bls12_381::Bls12;
use easy_parallel::Parallel;
use ff::Field;
use log::*;
use std::path::Path;
#[allow(dead_code)]
@@ -102,7 +102,7 @@ impl State {
witness.append(node).expect("append to witness");
}
if let Some((note, secret)) = self.try_decrypt_note(enc_note).await {
if let Some((note, _secret)) = self.try_decrypt_note(enc_note).await {
// We need to keep track of the witness for this coin.
// This allows us to prove inclusion of the coin in the merkle tree with ZK.
// Just as we update the merkle tree with every new coin, so we do the same with

View File

@@ -1,7 +1,7 @@
use group::GroupEncoding;
use std::io;
use crate::crypto::{merkle::IncrementalWitness, merkle_node::MerkleNode};
use crate::error::{Error, Result};
use crate::serial::{Decodable, Encodable, ReadExt, WriteExt};

View File

@@ -2,7 +2,7 @@
//! of notes.
//use byteorder::{LittleEndian, ReadBytesExt};
use crate::serial::{Decodable, Encodable, VarInt};
use crate::serial::{Decodable, Encodable};
use crate::{Error, Result};
use std::collections::VecDeque;
use std::io;

View File

@@ -1,4 +1,4 @@
use crate::wallet::{WalletDB, WalletPtr};
use crate::wallet::{WalletDB};
use crate::Result;
use async_std::sync::Arc;
use log::*;
@@ -25,7 +25,7 @@ impl RpcAdapter {
pub async fn cash_key_gen(&self) -> Result<()> {
debug!(target: "adapter", "key_gen() [START]");
let (public, private) = self.wallet.key_gen().await;
let (_public, _private) = self.wallet.key_gen().await;
//self.wallet.put_keypair(public, private).await?;
Ok(())
}

View File

@@ -1,6 +1,6 @@
use crate::rpc::adapter::RpcAdapter;
use crate::service::ClientProgramOptions;
use crate::{net, Error, Result};
use crate::{Error, Result};
use async_executor::Executor;
use async_native_tls::TlsAcceptor;
use async_std::sync::Mutex;

View File

@@ -7,8 +7,8 @@ use async_std::sync::{Arc, Mutex};
use ff::Field;
use log::*;
use rand::rngs::OsRng;
use rusqlite::{named_params, Connection, OpenFlags};
use std::path::{Path, PathBuf};
use rusqlite::{named_params, Connection};
use std::path::{PathBuf};
pub type WalletPtr = Arc<WalletDB>;