Skip to content

Commit 4b7f2eb

Browse files
committed
Fixup whitespace
1 parent 4088a38 commit 4b7f2eb

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/librustc/hir/map/def_collector.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,4 +358,4 @@ impl<'a> visit::Visitor<'a> for DefCollector<'a> {
358358
}
359359
}
360360
}
361-
}
361+
}

src/test/run-pass/async-await.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fn async_block_with_borrow_named_lifetime<'a>(x: &'a u8) -> impl Future<Output =
7171
async move {
7272
await!(wake_and_yield_once());
7373
*x
74-
}
74+
}
7575
}
7676

7777
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
115115

116116
async fn async_fn_with_named_lifetime_multiple_args<'a>(x: &'a u8, _y: &'a u8) -> u8 {
117117
await!(wake_and_yield_once());
118-
*x
118+
*x
119119
}
120120

121121
fn async_fn_with_internal_borrow(y: u8) -> impl Future<Output = u8> {
@@ -169,7 +169,7 @@ fn main() {
169169

170170
macro_rules! test_with_borrow {
171171
($($fn_name:expr,)*) => { $(
172-
test_future_yields_once_then_returns(|x| {
172+
test_future_yields_once_then_returns(|x| {
173173
async move {
174174
await!($fn_name(&x))
175175
}
@@ -183,19 +183,19 @@ fn main() {
183183
async_closure,
184184
async_fn,
185185
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+
},
191191
}
192192

193193
test_with_borrow! {
194194
async_block_with_borrow_named_lifetime,
195195
async_fn_with_borrow,
196196
async_fn_with_borrow_named_lifetime,
197197
async_fn_with_impl_future_named_lifetime,
198-
|x| {
198+
|x| {
199199
async move {
200200
await!(async_fn_with_named_lifetime_multiple_args(x, x))
201201
}

0 commit comments

Comments
 (0)