Option<CoroutineKind>
This commit is contained in:
parent
48d5f1f0f2
commit
f9d1f922dc
22 changed files with 117 additions and 122 deletions
|
@ -1492,7 +1492,6 @@ impl<'a> State<'a> {
|
|||
|
||||
fn print_coro_kind(&mut self, coro_kind: ast::CoroutineKind) {
|
||||
match coro_kind {
|
||||
ast::CoroutineKind::None => {}
|
||||
ast::CoroutineKind::Gen { .. } => {
|
||||
self.word_nbsp("gen");
|
||||
}
|
||||
|
@ -1691,7 +1690,7 @@ impl<'a> State<'a> {
|
|||
|
||||
fn print_fn_header_info(&mut self, header: ast::FnHeader) {
|
||||
self.print_constness(header.constness);
|
||||
self.print_coro_kind(header.coro_kind);
|
||||
header.coro_kind.map(|coro_kind| self.print_coro_kind(coro_kind));
|
||||
self.print_unsafety(header.unsafety);
|
||||
|
||||
match header.ext {
|
||||
|
|
|
@ -423,7 +423,7 @@ impl<'a> State<'a> {
|
|||
self.print_closure_binder(binder);
|
||||
self.print_constness(*constness);
|
||||
self.print_movability(*movability);
|
||||
self.print_coro_kind(*coro_kind);
|
||||
coro_kind.map(|coro_kind| self.print_coro_kind(coro_kind));
|
||||
self.print_capture_clause(*capture_clause);
|
||||
|
||||
self.print_fn_params_and_ret(fn_decl, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue