Skip to content

Commit afc3c5e

Browse files
dilovancelikiffyio
andauthored
Update src/ast/mod.rs
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
1 parent ddb163c commit afc3c5e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ast/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5419,9 +5419,8 @@ impl fmt::Display for Statement {
54195419
)?;
54205420
write!(f, "ON {on} ")?;
54215421
write!(f, "{}", display_separated(clauses, " "))?;
5422-
if output.is_some() {
5423-
let out = output.clone().unwrap();
5424-
write!(f, " {out}")?;
5422+
if let Some(output) = output {
5423+
write!(f, " {output}")?;
54255424
}
54265425
Ok(())
54275426
}

0 commit comments

Comments
 (0)