Address review comments
This commit is contained in:
parent
483f9e2580
commit
2459dbb4ba
2 changed files with 22 additions and 0 deletions
|
@ -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("[");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue