1
Fork 0

Address review comments

This commit is contained in:
Nadrieril 2024-12-07 12:49:08 +01:00
parent 483f9e2580
commit 2459dbb4ba
2 changed files with 22 additions and 0 deletions

View file

@ -1710,10 +1710,12 @@ impl<'a> State<'a> {
}
}
PatKind::Guard(subpat, condition) => {
self.popen();
self.print_pat(subpat);
self.space();
self.word_space("if");
self.print_expr(condition, FixupContext::default());
self.pclose();
}
PatKind::Slice(elts) => {
self.word("[");