From 208d6a897ee9ea6f4f847fc6a9d3ea5e65b49bf8 Mon Sep 17 00:00:00 2001 From: Micha de Vries Date: Thu, 22 Aug 2024 17:24:11 +0100 Subject: [PATCH] Fix closure "either" type display implementation (#4585) --- core/src/sql/closure.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/sql/closure.rs b/core/src/sql/closure.rs index db47188f..83bd95e6 100644 --- a/core/src/sql/closure.rs +++ b/core/src/sql/closure.rs @@ -71,7 +71,11 @@ impl fmt::Display for Closure { if i > 0 { f.write_str(", ")?; } - write!(f, "${name}: {kind}")?; + write!(f, "${name}: ")?; + match kind { + k @ Kind::Either(_) => write!(f, "<{}>", k)?, + k => write!(f, "{}", k)?, + } } f.write_str("|")?; if let Some(returns) = &self.returns {