fix(macro): add generics marco types support (#98)
add generic marco support Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
This commit is contained in:
parent
68375460df
commit
36834f37d0
1 changed files with 245 additions and 17 deletions
|
|
@ -19,6 +19,7 @@ pub struct Counter {
|
|||
}
|
||||
#[tool(tool_box)]
|
||||
impl Counter {
|
||||
#[allow(dead_code)]
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
counter: Arc::new(Mutex::new(0)),
|
||||
|
|
|
|||
Loading…
Reference in a new issue