Skip to content

Commit

Permalink
fix: Some gymnastics for clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
can-keklik committed Dec 18, 2024
1 parent 112a680 commit d149603
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lykiadb-lang/src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1111,13 +1111,12 @@ impl Parser<'_> {
(None, false)
};

if second_expr.is_some() && reverse {
Some(SqlLimitClause {
match (&second_expr, reverse) {
(Some(_), true) => Some(SqlLimitClause {
count: second_expr.unwrap(),
offset: Some(first_expr),
})
} else {
Some(SqlLimitClause {
}),
_ => Some(SqlLimitClause {
count: first_expr,
offset: second_expr,
})
Expand Down

0 comments on commit d149603

Please sign in to comment.