Skip to content

Commit 011005e

Browse files
committed
Simplify writing AsBeginEnd body
1 parent 39fe82a commit 011005e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ast/ddl.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -2278,8 +2278,7 @@ impl fmt::Display for CreateFunction {
22782278
write!(f, " AS {function_body}")?;
22792279
}
22802280
if let Some(CreateFunctionBody::AsBeginEnd(bes)) = &self.function_body {
2281-
write!(f, " AS")?;
2282-
write!(f, " {}", bes)?;
2281+
write!(f, " AS {bes}")?;
22832282
}
22842283
Ok(())
22852284
}

0 commit comments

Comments
 (0)