Fix closure "either" type display implementation (#4585)
This commit is contained in:
parent
1294a674bc
commit
208d6a897e
1 changed files with 5 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue