@@ -7,16 +7,16 @@ use crate::*;
7
7
///
8
8
/// # Arguments
9
9
///
10
- /// - `TokenStream ` - The attribute token stream , which can optionally specify an `order`.
11
- /// - `TokenStream ` - The input token stream representing the function to be registered as a hook.
10
+ /// - `attr ` - The attribute `TokenStream` , which can optionally specify an `order`.
11
+ /// - `item ` - The input `TokenStream` representing the function to be registered as a hook.
12
12
///
13
13
/// # Note
14
14
///
15
15
/// If an order parameter is not specified, the hook will have a higher priority than hooks with a specified order.
16
16
///
17
17
/// # Returns
18
18
///
19
- /// - `TokenStream` - The expanded token stream with the hook registration.
19
+ /// Returns the expanded `TokenStream` with the hook registration.
20
20
pub ( crate ) fn connected_hook_macro ( attr : TokenStream , item : TokenStream ) -> TokenStream {
21
21
let attr_args: OrderAttr = parse_macro_input ! ( attr as OrderAttr ) ;
22
22
let order: TokenStream2 = expr_to_isize ( & attr_args. order ) ;
@@ -48,16 +48,16 @@ inventory::submit! {
48
48
///
49
49
/// # Arguments
50
50
///
51
- /// - `TokenStream ` - The attribute token stream , which can optionally specify an `order`.
52
- /// - `TokenStream ` - The input token stream representing the function to be registered as a hook.
51
+ /// - `attr ` - The attribute `TokenStream` , which can optionally specify an `order`.
52
+ /// - `item ` - The input `TokenStream` representing the function to be registered as a hook.
53
53
///
54
54
/// # Note
55
55
///
56
56
/// If an order parameter is not specified, the hook will have a higher priority than hooks with a specified order.
57
57
///
58
58
/// # Returns
59
59
///
60
- /// - `TokenStream` - The expanded token stream with the hook registration.
60
+ /// Returns the expanded `TokenStream` with the hook registration.
61
61
pub ( crate ) fn prologue_upgrade_hook_macro ( attr : TokenStream , item : TokenStream ) -> TokenStream {
62
62
let attr_args: OrderAttr = parse_macro_input ! ( attr as OrderAttr ) ;
63
63
let order: TokenStream2 = expr_to_isize ( & attr_args. order ) ;
@@ -89,16 +89,16 @@ inventory::submit! {
89
89
///
90
90
/// # Arguments
91
91
///
92
- /// - `TokenStream ` - The attribute token stream , which can optionally specify an `order`.
93
- /// - `TokenStream ` - The input token stream representing the function to be registered as a hook.
92
+ /// - `attr ` - The attribute `TokenStream` , which can optionally specify an `order`.
93
+ /// - `item ` - The input `TokenStream` representing the function to be registered as a hook.
94
94
///
95
95
/// # Note
96
96
///
97
97
/// If an order parameter is not specified, the hook will have a higher priority than hooks with a specified order.
98
98
///
99
99
/// # Returns
100
100
///
101
- /// - `TokenStream` - The expanded token stream with the hook registration.
101
+ /// Returns the expanded `TokenStream` with the hook registration.
102
102
pub ( crate ) fn panic_hook_macro ( attr : TokenStream , item : TokenStream ) -> TokenStream {
103
103
let attr_args: OrderAttr = parse_macro_input ! ( attr as OrderAttr ) ;
104
104
let order: TokenStream2 = expr_to_isize ( & attr_args. order ) ;
@@ -130,12 +130,12 @@ inventory::submit! {
130
130
///
131
131
/// # Arguments
132
132
///
133
- /// - `TokenStream ` - The attribute token stream , containing the path to disable the hook for and an optional order.
134
- /// - `TokenStream ` - The input token stream representing the function to be registered.
133
+ /// - `attr ` - The attribute `TokenStream` , containing the path to disable the hook for and an optional order.
134
+ /// - `item ` - The input `TokenStream` representing the function to be registered.
135
135
///
136
136
/// # Returns
137
137
///
138
- /// - `TokenStream` - The expanded token stream with the hook disabling registration.
138
+ /// Returns the expanded `TokenStream` with the hook disabling registration.
139
139
pub ( crate ) fn disable_http_hook_macro ( attr : TokenStream , item : TokenStream ) -> TokenStream {
140
140
let attr_args: PathAttr = parse_macro_input ! ( attr as PathAttr ) ;
141
141
let path: & Expr = & attr_args. path ;
@@ -167,12 +167,12 @@ inventory::submit! {
167
167
///
168
168
/// # Arguments
169
169
///
170
- /// - `TokenStream ` - The attribute token stream , containing the path to disable the hook for and an optional order.
171
- /// - `TokenStream ` - The input token stream representing the function to be registered.
170
+ /// - `attr ` - The attribute `TokenStream` , containing the path to disable the hook for and an optional order.
171
+ /// - `item ` - The input `TokenStream` representing the function to be registered.
172
172
///
173
173
/// # Returns
174
174
///
175
- /// - `TokenStream` - The expanded token stream with the hook disabling registration.
175
+ /// Returns the expanded `TokenStream` with the hook disabling registration.
176
176
pub ( crate ) fn disable_ws_hook_macro ( attr : TokenStream , item : TokenStream ) -> TokenStream {
177
177
let attr_args: PathAttr = parse_macro_input ! ( attr as PathAttr ) ;
178
178
let path: & Expr = & attr_args. path ;
@@ -201,12 +201,12 @@ inventory::submit! {
201
201
///
202
202
/// # Arguments
203
203
///
204
- /// - `TokenStream ` - The attribute token stream.
205
- /// - `TokenStream ` - The input token stream to process.
204
+ /// - `attr ` - The attribute token stream.
205
+ /// - `item ` - The input token stream to process.
206
206
///
207
207
/// # Returns
208
208
///
209
- /// - `TokenStream` - The expanded token stream with pre-hook call.
209
+ /// Returns the expanded `TokenStream` with pre-hook call.
210
210
pub ( crate ) fn prologue_hook_macro (
211
211
attr : TokenStream ,
212
212
item : TokenStream ,
@@ -231,12 +231,12 @@ inventory::submit! {
231
231
///
232
232
/// # Arguments
233
233
///
234
- /// - `TokenStream ` - The attribute token stream.
235
- /// - `TokenStream ` - The input token stream to process.
234
+ /// - `attr ` - The attribute token stream.
235
+ /// - `item ` - The input token stream to process.
236
236
///
237
237
/// # Returns
238
238
///
239
- /// - `TokenStream` - The expanded token stream with post-hook call.
239
+ /// Returns the expanded `TokenStream` with post-hook call.
240
240
pub ( crate ) fn epilogue_hook_macro (
241
241
attr : TokenStream ,
242
242
item : TokenStream ,
0 commit comments