diff --git a/src/bin/dfi.rs b/src/bin/dfi.rs index 16425cc90..1c1f89d91 100644 --- a/src/bin/dfi.rs +++ b/src/bin/dfi.rs @@ -1,4 +1,3 @@ -#[macro_use] extern crate clap; use async_executor::Executor; use sapvi::rpc::options::ProgramOptions; diff --git a/src/bin/spend-classic.rs b/src/bin/spend-classic.rs index 04335d141..dd5f73534 100644 --- a/src/bin/spend-classic.rs +++ b/src/bin/spend-classic.rs @@ -167,7 +167,6 @@ impl SpendRevealedValues { fn main() { use rand::rngs::OsRng; - use std::time::Instant; let value = 110; let randomness_value: jubjub::Fr = jubjub::Fr::random(&mut OsRng); diff --git a/src/error.rs b/src/error.rs index 1f0711a82..e81e63c6f 100644 --- a/src/error.rs +++ b/src/error.rs @@ -107,7 +107,7 @@ impl fmt::Display for Error { // TODO: Match statement to parse external errors into strings. impl From for Error { - fn from(err: zeromq::ZmqError) -> Error { + fn from(_err: zeromq::ZmqError) -> Error { Error::ZMQError } } @@ -119,31 +119,31 @@ impl From for Error { } impl From for Error { - fn from(err: rusqlite::Error) -> Error { + fn from(_err: rusqlite::Error) -> Error { Error::RusqliteError } } impl From for Error { - fn from(err: ZKVMError) -> Error { + fn from(_err: ZKVMError) -> Error { Error::VMError } } impl From for Error { - fn from(err: bellman::SynthesisError) -> Error { + fn from(_err: bellman::SynthesisError) -> Error { Error::Groth16Error } } impl From> for Error { - fn from(err: async_channel::SendError) -> Error { + fn from(_err: async_channel::SendError) -> Error { Error::AsyncChannelError } } impl From for Error { - fn from(err: async_channel::RecvError) -> Error { + fn from(_err: async_channel::RecvError) -> Error { Error::AsyncChannelError } } @@ -180,7 +180,7 @@ impl From for Error { } impl From for Error { - fn from(err: state::VerifyFailed) -> Error { + fn from(_err: state::VerifyFailed) -> Error { Error::VerifyFailed } } diff --git a/src/rpc/jsonserver.rs b/src/rpc/jsonserver.rs index 352617966..9c081f531 100644 --- a/src/rpc/jsonserver.rs +++ b/src/rpc/jsonserver.rs @@ -71,7 +71,7 @@ pub async fn listen( } } -pub async fn start(executor: Arc>, options: ProgramOptions, adapter: Arc) -> Result<()> { +pub async fn start(executor: Arc>, options: ProgramOptions, _adapter: Arc) -> Result<()> { let p2p = net::P2p::new(options.network_settings); let rpc = RpcInterface::new(p2p.clone()); diff --git a/src/rpc/options.rs b/src/rpc/options.rs index 0e988fd4b..1d34a8ac4 100644 --- a/src/rpc/options.rs +++ b/src/rpc/options.rs @@ -1,4 +1,3 @@ -#[macro_use] use std::net::SocketAddr; use crate::{net, Result}; diff --git a/src/rpc/test.rs b/src/rpc/test.rs index 8f3b7ef11..e69de29bb 100644 --- a/src/rpc/test.rs +++ b/src/rpc/test.rs @@ -1 +0,0 @@ -fn foo() {}