Skip to content

Commit 4399e7d

Browse files
committed
Rename macro meta arguments to attr
1 parent ac1a15a commit 4399e7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/src/macros.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
#[macro_export]
1212
macro_rules! jsonrpc_client {
1313
(
14-
$(#[$struct_doc:meta])*
14+
$(#[$struct_attr:meta])*
1515
pub struct $struct_name:ident {$(
16-
$(#[$doc:meta])*
16+
$(#[$attr:meta])*
1717
pub fn $method:ident(&mut $selff:ident $(, $arg_name:ident: $arg_ty:ty)*)
1818
-> RpcRequest<$return_ty:ty>;
1919
)*}
2020
) => (
21-
$(#[$struct_doc])*
21+
$(#[$struct_attr])*
2222
pub struct $struct_name<T: $crate::Transport> {
2323
transport: T,
2424
}
@@ -30,7 +30,7 @@ macro_rules! jsonrpc_client {
3030
}
3131

3232
$(
33-
$(#[$doc])*
33+
$(#[$attr])*
3434
pub fn $method(&mut $selff $(, $arg_name: $arg_ty)*)
3535
-> $crate::RpcRequest<$return_ty, T::Future>
3636
{

0 commit comments

Comments
 (0)