Skip to content

Commit

Permalink
Remove trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
sledgehammervampire committed Jan 10, 2021
1 parent 9e345a5 commit 757bd23
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1331,11 +1331,13 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
}
ConstraintCategory::CallArgument => {
fr_name.highlight_region_name(&mut err);
if matches!(use_span.generator_kind(), Some(generator_kind)
if matches!(use_span.generator_kind(), Some(generator_kind)
if matches!(generator_kind, GeneratorKind::Async(_)))
{
err.note("async blocks are not executed immediately and either must take a \
reference or ownership of outside variables they use");
err.note(
"async blocks are not executed immediately and either must take a \
reference or ownership of outside variables they use",
);
err.help("see https://rust-lang.github.io/async-book/03_async_await/01_chapter.html#awaiting-on-a-multithreaded-executor \
for more information");
} else {
Expand Down

0 comments on commit 757bd23

Please sign in to comment.