Fix compiler warnings

This commit is contained in:
Greg Fitzgerald
2019-02-17 11:01:21 -07:00
parent c646845cd3
commit 34fceca7ff
3 changed files with 5 additions and 6 deletions

View File

@ -6,7 +6,7 @@ use crate::packet::PACKET_DATA_SIZE;
use crate::storage_stage::StorageState; use crate::storage_stage::StorageState;
use bincode::{deserialize, serialize}; use bincode::{deserialize, serialize};
use bs58; use bs58;
use jsonrpc_core::{Error, ErrorCode, MetaIoHandler, Metadata, Result}; use jsonrpc_core::{Error, ErrorCode, Metadata, Result};
use jsonrpc_derive::rpc; use jsonrpc_derive::rpc;
use solana_drone::drone::request_airdrop_transaction; use solana_drone::drone::request_airdrop_transaction;
use solana_sdk::account::Account; use solana_sdk::account::Account;
@ -17,7 +17,7 @@ use std::mem;
use std::net::{SocketAddr, UdpSocket}; use std::net::{SocketAddr, UdpSocket};
use std::str::FromStr; use std::str::FromStr;
use std::sync::{Arc, RwLock}; use std::sync::{Arc, RwLock};
use std::thread::{self, sleep}; use std::thread::sleep;
use std::time::{Duration, Instant}; use std::time::{Duration, Instant};
#[derive(Clone)] #[derive(Clone)]

View File

@ -8,13 +8,12 @@ use jsonrpc_core::futures::Future;
use jsonrpc_core::{Error, ErrorCode, Result}; use jsonrpc_core::{Error, ErrorCode, Result};
use jsonrpc_derive::rpc; use jsonrpc_derive::rpc;
use jsonrpc_pubsub::typed::Subscriber; use jsonrpc_pubsub::typed::Subscriber;
use jsonrpc_pubsub::{PubSubHandler, Session, SubscriptionId}; use jsonrpc_pubsub::{Session, SubscriptionId};
use solana_sdk::account::Account; use solana_sdk::account::Account;
use solana_sdk::pubkey::Pubkey; use solana_sdk::pubkey::Pubkey;
use solana_sdk::signature::Signature; use solana_sdk::signature::Signature;
use std::mem; use std::mem;
use std::sync::{atomic, Arc, RwLock}; use std::sync::{atomic, Arc, RwLock};
use std::time::Duration;
#[rpc] #[rpc]
pub trait RpcSolPubSub { pub trait RpcSolPubSub {

View File

@ -1,9 +1,9 @@
//! The `pubsub` module implements a threaded subscription service on client RPC request //! The `pubsub` module implements a threaded subscription service on client RPC request
use crate::bank::{self, Bank, BankError}; use crate::bank::{self, BankError};
use crate::rpc::RpcSignatureStatus; use crate::rpc::RpcSignatureStatus;
use jsonrpc_core::futures::Future; use jsonrpc_core::futures::Future;
use jsonrpc_pubsub::typed::{Sink, Subscriber}; use jsonrpc_pubsub::typed::Sink;
use jsonrpc_pubsub::SubscriptionId; use jsonrpc_pubsub::SubscriptionId;
use solana_sdk::account::Account; use solana_sdk::account::Account;
use solana_sdk::pubkey::Pubkey; use solana_sdk::pubkey::Pubkey;