@@ -71,7 +71,7 @@ fn async_block_with_borrow_named_lifetime<'a>(x: &'a u8) -> impl Future<Output =
71
71
async move {
72
72
await ! ( wake_and_yield_once( ) ) ;
73
73
* x
74
- }
74
+ }
75
75
}
76
76
77
77
fn async_nonmove_block ( x : u8 ) -> impl Future < Output = u8 > {
@@ -115,7 +115,7 @@ fn async_fn_with_impl_future_named_lifetime<'a>(x: &'a u8) -> impl Future<Output
115
115
116
116
async fn async_fn_with_named_lifetime_multiple_args < ' a > ( x : & ' a u8 , _y : & ' a u8 ) -> u8 {
117
117
await ! ( wake_and_yield_once( ) ) ;
118
- * x
118
+ * x
119
119
}
120
120
121
121
fn async_fn_with_internal_borrow ( y : u8 ) -> impl Future < Output = u8 > {
@@ -169,7 +169,7 @@ fn main() {
169
169
170
170
macro_rules! test_with_borrow {
171
171
( $( $fn_name: expr, ) * ) => { $(
172
- test_future_yields_once_then_returns( |x| {
172
+ test_future_yields_once_then_returns( |x| {
173
173
async move {
174
174
await !( $fn_name( & x) )
175
175
}
@@ -183,19 +183,19 @@ fn main() {
183
183
async_closure,
184
184
async_fn,
185
185
async_fn_with_internal_borrow,
186
- |x| {
187
- async move {
188
- unsafe { await !( unsafe_async_fn( x) ) }
189
- }
190
- } ,
186
+ |x| {
187
+ async move {
188
+ unsafe { await !( unsafe_async_fn( x) ) }
189
+ }
190
+ } ,
191
191
}
192
192
193
193
test_with_borrow ! {
194
194
async_block_with_borrow_named_lifetime,
195
195
async_fn_with_borrow,
196
196
async_fn_with_borrow_named_lifetime,
197
197
async_fn_with_impl_future_named_lifetime,
198
- |x| {
198
+ |x| {
199
199
async move {
200
200
await !( async_fn_with_named_lifetime_multiple_args( x, x) )
201
201
}
0 commit comments