Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Nov 28, 2024
1 parent e9c167f commit e980885
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/backend/query_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,12 +471,9 @@ pub trait QueryBuilder:
None => {}
};

match &select_expr.alias {
Some(alias) => {
write!(sql, " AS ").unwrap();
alias.prepare(sql.as_writer(), self.quote());
}
None => {}
if let Some(alias) = &select_expr.alias {
write!(sql, " AS ").unwrap();
alias.prepare(sql.as_writer(), self.quote());
};
}

Expand Down

0 comments on commit e980885

Please sign in to comment.