Update solana-vote-signer to Rust 2018

This commit is contained in:
Tyera Eulberg 2019-02-01 10:06:28 -07:00 committed by Tyera Eulberg
parent 0e58023794
commit 1b3e7f734a
4 changed files with 8 additions and 15 deletions

View File

@ -1,8 +1,9 @@
[package]
name = "solana-vote-signer"
version = "0.12.0"
description = "Solana Vote Signing Service"
authors = ["Solana Maintainers <maintainers@solana.com>"]
edition = "2018"
name = "solana-vote-signer"
description = "Solana Vote Signing Service"
version = "0.12.0"
repository = "https://github.com/solana-labs/solana"
license = "Apache-2.0"
homepage = "https://solana.com/"

View File

@ -1,11 +1,4 @@
#[macro_use]
extern crate clap;
extern crate log;
extern crate solana_metrics;
extern crate solana_sdk;
extern crate solana_vote_signer;
use clap::{App, Arg};
use clap::{crate_version, App, Arg};
use solana_vote_signer::rpc::VoteSignerRpcService;
use std::error;
use std::net::{IpAddr, Ipv4Addr, SocketAddr};

View File

@ -1,6 +1,5 @@
pub mod rpc;
extern crate bs58;
#[macro_use]
extern crate log;
extern crate solana_jsonrpc_core as jsonrpc_core;

View File

@ -1,7 +1,7 @@
//! The `rpc` module implements the Vote signing service RPC interface.
use jsonrpc_core::*;
use jsonrpc_http_server::*;
use crate::jsonrpc_core::*;
use crate::jsonrpc_http_server::*;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::signature::{Keypair, KeypairUtil, Signature};
use std::collections::HashMap;
@ -178,7 +178,7 @@ impl Default for LocalVoteSigner {
#[cfg(test)]
mod tests {
use super::*;
use jsonrpc_core::Response;
use crate::jsonrpc_core::Response;
use solana_sdk::signature::{Keypair, KeypairUtil};
use std::mem;