diff options
Diffstat (limited to 'src/pretty.rs')
| -rw-r--r-- | src/pretty.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pretty.rs b/src/pretty.rs index bd388b56..52300546 100644 --- a/src/pretty.rs +++ b/src/pretty.rs @@ -370,6 +370,15 @@ impl Pretty for ClosureExpr { } } +impl Pretty for ClosureParam { + fn pretty(&self, p: &mut Printer) { + match self { + Self::Pos(ident) => ident.pretty(p), + Self::Named(named) => named.pretty(p), + } + } +} + impl Pretty for WithExpr { fn pretty(&self, p: &mut Printer) { self.callee.pretty(p); |
