mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 08:51:08 +03:00
Compiler warnings 20190123 (#2462)
* cleanup compiler warnings: unused imports * rustfmt * more compiler warnings
This commit is contained in:
parent
0e0ec247e4
commit
dd1a24dcbc
14 changed files with 3 additions and 32 deletions
|
@ -140,7 +140,7 @@ impl Handler for BlockHandler {
|
|||
return response(
|
||||
StatusCode::BAD_REQUEST,
|
||||
format!("failed to parse input: {}", e),
|
||||
)
|
||||
);
|
||||
}
|
||||
Ok(h) => h,
|
||||
};
|
||||
|
|
|
@ -85,7 +85,7 @@ impl Handler for PeerHandler {
|
|||
return response(
|
||||
StatusCode::BAD_REQUEST,
|
||||
format!("invalid peer address: {}", e),
|
||||
)
|
||||
);
|
||||
}
|
||||
Ok(addr) => addr,
|
||||
},
|
||||
|
|
|
@ -22,22 +22,14 @@ use grin_util as util;
|
|||
use failure;
|
||||
#[macro_use]
|
||||
extern crate failure_derive;
|
||||
use hyper;
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
|
||||
use serde;
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
use serde_json;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
|
||||
use hyper_rustls;
|
||||
use rustls;
|
||||
|
||||
use tokio_tcp;
|
||||
|
||||
pub mod auth;
|
||||
pub mod client;
|
||||
mod handlers;
|
||||
|
|
|
@ -990,7 +990,7 @@ impl Chain {
|
|||
Err(e) => {
|
||||
return Err(
|
||||
ErrorKind::StoreErr(e, "retrieving block to compact".to_owned()).into(),
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
if current.height <= 1 {
|
||||
|
|
|
@ -33,7 +33,6 @@ extern crate log;
|
|||
use failure;
|
||||
use grin_core as core;
|
||||
use grin_keychain as keychain;
|
||||
use grin_store;
|
||||
use grin_util as util;
|
||||
|
||||
mod chain;
|
||||
|
|
|
@ -20,11 +20,8 @@
|
|||
#![deny(unused_mut)]
|
||||
#![warn(missing_docs)]
|
||||
|
||||
use dirs;
|
||||
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
use toml;
|
||||
|
||||
use grin_core as core;
|
||||
use grin_p2p as p2p;
|
||||
|
|
|
@ -29,7 +29,6 @@ use lmdb_zero as lmdb;
|
|||
|
||||
#[macro_use]
|
||||
extern crate grin_core as core;
|
||||
use grin_store;
|
||||
use grin_util as util;
|
||||
|
||||
#[macro_use]
|
||||
|
|
|
@ -21,10 +21,8 @@
|
|||
#![deny(unused_mut)]
|
||||
#![warn(missing_docs)]
|
||||
|
||||
use serde;
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
use serde_json;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
|
||||
|
|
|
@ -14,11 +14,9 @@
|
|||
//! Test wallet command line works as expected
|
||||
#[cfg(test)]
|
||||
mod wallet_tests {
|
||||
use chrono;
|
||||
use clap;
|
||||
use grin_util as util;
|
||||
use grin_wallet;
|
||||
use serde;
|
||||
|
||||
use grin_wallet::test_framework::{self, LocalWalletClient, WalletProxy};
|
||||
|
||||
|
|
|
@ -16,9 +16,7 @@
|
|||
|
||||
#[macro_use]
|
||||
extern crate clap;
|
||||
use ctrlc;
|
||||
|
||||
use serde_json;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
use crate::config::config::{SERVER_CONFIG_FILE_NAME, WALLET_CONFIG_FILE_NAME};
|
||||
|
@ -31,9 +29,7 @@ use grin_core as core;
|
|||
use grin_p2p as p2p;
|
||||
use grin_servers as servers;
|
||||
use grin_util as util;
|
||||
use grin_wallet;
|
||||
use std::process::exit;
|
||||
use term;
|
||||
|
||||
mod cmd;
|
||||
pub mod tui;
|
||||
|
|
|
@ -20,9 +20,6 @@
|
|||
#![deny(unused_mut)]
|
||||
#![warn(missing_docs)]
|
||||
|
||||
use lmdb_zero;
|
||||
use memmap;
|
||||
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
use failure;
|
||||
|
|
|
@ -19,7 +19,6 @@ use blake2_rfc as blake2;
|
|||
#[macro_use]
|
||||
extern crate prettytable;
|
||||
|
||||
use serde;
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
#[macro_use]
|
||||
|
@ -30,7 +29,6 @@ use grin_core as core;
|
|||
use grin_keychain as keychain;
|
||||
use grin_store as store;
|
||||
use grin_util as util;
|
||||
use term;
|
||||
|
||||
mod adapters;
|
||||
pub mod command;
|
||||
|
|
|
@ -21,8 +21,6 @@ use std::fs::File;
|
|||
use std::io::{Read, Write};
|
||||
use std::path::Path;
|
||||
|
||||
use serde_json;
|
||||
|
||||
use failure::ResultExt;
|
||||
use uuid::Uuid;
|
||||
|
||||
|
|
|
@ -552,7 +552,6 @@ fn two_wallets_one_seed_impl(test_dir: &str) -> Result<(), libwallet::Error> {
|
|||
})?;
|
||||
|
||||
let _ = test_framework::award_blocks_to_wallet(&chain, miner.clone(), cm);
|
||||
bh += cm as u64;
|
||||
|
||||
// 7) Ensure check_repair creates missing accounts
|
||||
wallet::controller::owner_single_use(wallet10.clone(), |api| {
|
||||
|
|
Loading…
Reference in a new issue