Rust 2018 cleanup

This commit is contained in:
Michael Vines
2018-12-14 20:39:10 -08:00
committed by Grimes
parent aaa5cd4615
commit fd562cb9e2
59 changed files with 109 additions and 209 deletions

View File

@ -1,14 +1,11 @@
//! Vote program
//! Receive and processes votes from validators
#[macro_use]
extern crate log;
#[macro_use]
extern crate solana_sdk;
use log::*;
use solana_sdk::account::KeyedAccount;
use solana_sdk::native_program::ProgramError;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::solana_entrypoint;
use solana_sdk::vote_program::*;
use std::collections::VecDeque;
@ -39,7 +36,7 @@ fn entrypoint(
// TODO: a single validator could register multiple "vote accounts"
// which would clutter the "accounts" structure. See github issue 1654.
let mut vote_state = VoteProgram {
let vote_state = VoteProgram {
votes: VecDeque::new(),
node_id: *keyed_accounts[0].signer_key().unwrap(),
};