Use closure parse code

This commit is contained in:
Santiago Pastorino
2024-11-01 18:37:32 -03:00
parent 05c516446a
commit 81a926cc2a
20 changed files with 137 additions and 68 deletions

View File

@@ -2305,6 +2305,7 @@ impl<'a> State<'a> {
fn print_capture_clause(&mut self, capture_clause: hir::CaptureBy) {
match capture_clause {
hir::CaptureBy::Value { .. } => self.word_space("move"),
hir::CaptureBy::Use { .. } => self.word_space("use"),
hir::CaptureBy::Ref => {}
}
}