Fix warnings: unused

This commit is contained in:
adria0
2020-07-29 10:57:15 +02:00
committed by Artem Vorotnikov
parent 0cd972326c
commit cacbf256fe
23 changed files with 21 additions and 55 deletions

View File

@@ -44,7 +44,7 @@ impl ethcore::engines::EngineSigner for EngineSigner {
.sign(self.address, Some(self.password.clone()), message)
{
Ok(ok) => Ok(ok),
Err(e) => Err(ethkey::Error::InvalidSecret),
Err(_e) => Err(ethkey::Error::InvalidSecret),
}
}

View File

@@ -21,7 +21,6 @@ use serde::{
use std::fmt;
use ethereum_types::H256;
use ethstore;
/// Type of derivation
pub enum DerivationType {
@@ -32,6 +31,7 @@ pub enum DerivationType {
}
/// Derivation request by hash
#[allow(dead_code)]
#[derive(Deserialize)]
pub struct DeriveHash {
hash: H256,
@@ -40,6 +40,7 @@ pub struct DeriveHash {
}
/// Node propertoes in hierarchical derivation request
#[allow(dead_code)]
#[derive(Deserialize)]
pub struct DeriveHierarchicalItem {
index: u64,