diff --git a/notify/src/address/tracker.rs b/notify/src/address/tracker.rs index a627408e4..f103b163c 100644 --- a/notify/src/address/tracker.rs +++ b/notify/src/address/tracker.rs @@ -111,7 +111,6 @@ impl Indexer for CounterMap { #[cfg(test)] #[derive(Debug, Clone)] -#[cfg(test)] pub struct Counter { pub index: Index, pub count: RefCount, diff --git a/rpc/macros/src/handler.rs b/rpc/macros/src/handler.rs index 728ce82f0..165c4e0eb 100644 --- a/rpc/macros/src/handler.rs +++ b/rpc/macros/src/handler.rs @@ -7,6 +7,7 @@ use syn::{Attribute, Error, Expr, ExprArray, Result}; pub struct Handler { pub name: String, pub fn_call: Ident, + #[allow(dead_code)] pub fn_with_suffix: Option, pub fn_no_suffix: Ident, pub fn_camel: Ident, diff --git a/wallet/macros/src/handler.rs b/wallet/macros/src/handler.rs index 961fbad3f..8d9eb0525 100644 --- a/wallet/macros/src/handler.rs +++ b/wallet/macros/src/handler.rs @@ -10,10 +10,12 @@ use xxhash_rust::xxh32::xxh32; #[derive(Debug)] pub struct Handler { pub name: String, + #[allow(dead_code)] pub hash_32: Literal, pub hash_64: Literal, pub ident: Literal, pub fn_call: Ident, + #[allow(dead_code)] pub fn_with_suffix: Option, pub fn_no_suffix: Ident, pub fn_camel: Ident,