Fix compile warnings (#11595)
* Fix compile warnings * oops * oops * Fix
This commit is contained in:
@@ -58,6 +58,7 @@ mod codes {
|
||||
pub const REQUEST_REJECTED_LIMIT: i64 = -32041;
|
||||
pub const REQUEST_NOT_FOUND: i64 = -32042;
|
||||
pub const ENCRYPTION_ERROR: i64 = -32055;
|
||||
#[cfg(any(test, feature = "accounts"))]
|
||||
pub const ENCODING_ERROR: i64 = -32058;
|
||||
pub const FETCH_ERROR: i64 = -32060;
|
||||
pub const NO_LIGHT_PEERS: i64 = -32065;
|
||||
|
||||
@@ -30,6 +30,7 @@ pub enum DerivationType {
|
||||
}
|
||||
|
||||
/// Derivation request by hash
|
||||
#[cfg_attr(not(any(test, feature = "accounts")), allow(unused))]
|
||||
#[derive(Deserialize)]
|
||||
pub struct DeriveHash {
|
||||
hash: H256,
|
||||
@@ -37,7 +38,8 @@ pub struct DeriveHash {
|
||||
d_type: DerivationType,
|
||||
}
|
||||
|
||||
/// Node propertoes in hierarchical derivation request
|
||||
/// Node properties in hierarchical derivation request
|
||||
#[cfg_attr(not(any(test, feature = "accounts")), allow(unused))]
|
||||
#[derive(Deserialize)]
|
||||
pub struct DeriveHierarchicalItem {
|
||||
index: u64,
|
||||
|
||||
Reference in New Issue
Block a user