Skip to content

Commit 85fae63

Browse files
committed
Use display_comma_separated to print exprs
1 parent 4b8c6fe commit 85fae63

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/ast/query.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,15 +1684,7 @@ impl fmt::Display for OrderByExpr {
16841684
}
16851685
if let Some(ref interpolate) = self.interpolate {
16861686
match &interpolate.expr {
1687-
Some(exprs) => write!(
1688-
f,
1689-
" INTERPOLATE ({})",
1690-
exprs
1691-
.iter()
1692-
.map(std::string::ToString::to_string)
1693-
.collect::<Vec<_>>()
1694-
.join(", ")
1695-
)?,
1687+
Some(exprs) => write!(f, " INTERPOLATE ({})", display_comma_separated(exprs))?,
16961688
None => write!(f, " INTERPOLATE")?,
16971689
}
16981690
}

0 commit comments

Comments
 (0)