From ba38cc0ccc6a68bc36d4a9f140781d07e538a52c Mon Sep 17 00:00:00 2001 From: NikVolf Date: Thu, 30 Jun 2016 21:00:52 +0300 Subject: [PATCH] fix all warnings --- ethcore/src/client/client.rs | 2 +- ethcore/src/types/block_import_error.rs | 1 + ethcore/src/types/trace_filter.rs | 2 +- ethcore/src/types/transaction_import_result.rs | 3 ++- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ethcore/src/client/client.rs b/ethcore/src/client/client.rs index 8d15272a3..3c0733ec5 100644 --- a/ethcore/src/client/client.rs +++ b/ethcore/src/client/client.rs @@ -16,5 +16,5 @@ //! Blockchain database client. -#![allow(dead_code, unused_assignments, unused_variables)] // codegen issues +#![allow(dead_code, unused_assignments, unused_variables, missing_docs)] // codegen issues include!(concat!(env!("OUT_DIR"), "/client.ipc.rs")); diff --git a/ethcore/src/types/block_import_error.rs b/ethcore/src/types/block_import_error.rs index 711751e0c..8b400613f 100644 --- a/ethcore/src/types/block_import_error.rs +++ b/ethcore/src/types/block_import_error.rs @@ -22,6 +22,7 @@ use std::collections::VecDeque; use error::{ImportError, BlockError, Error}; use std::convert::From; +/// Error dedicated to import block function #[derive(Binary, Debug)] pub enum BlockImportError { /// Import error diff --git a/ethcore/src/types/trace_filter.rs b/ethcore/src/types/trace_filter.rs index 05cd83bb0..870792d15 100644 --- a/ethcore/src/types/trace_filter.rs +++ b/ethcore/src/types/trace_filter.rs @@ -20,7 +20,7 @@ use std::mem; use ipc::binary::{BinaryConvertError, BinaryConvertable}; use std::collections::VecDeque; use std::ops::Range; -use util::{Address, H256}; +use util::{Address}; use types::ids::BlockID; /// Easy to use trace filter. diff --git a/ethcore/src/types/transaction_import_result.rs b/ethcore/src/types/transaction_import_result.rs index c2068b0bc..dc883c8c6 100644 --- a/ethcore/src/types/transaction_import_result.rs +++ b/ethcore/src/types/transaction_import_result.rs @@ -14,7 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Parity. If not, see . -use std::mem; +//! Transaction import result related types + use ipc::binary::BinaryConvertError; use std::collections::VecDeque;