Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Commit

Permalink
*: make clippy happy
Browse files Browse the repository at this point in the history
Signed-off-by: Chojan Shang <[email protected]>
  • Loading branch information
PsiACE committed Jun 24, 2021
1 parent 0c52491 commit a12dd0e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2202,8 +2202,8 @@ impl<'a> Parser<'a> {
Ok(Query {
with,
body,
limit,
order_by,
limit,
offset,
fetch,
})
Expand Down Expand Up @@ -2358,8 +2358,7 @@ impl<'a> Parser<'a> {
]) // This couldn't possibly be a bad idea
})?
.into_iter()
.filter(|i| i.is_some())
.map(|i| i.unwrap())
.flatten()
.collect();

lateral_views.push(LateralView {
Expand Down Expand Up @@ -2414,8 +2413,8 @@ impl<'a> Parser<'a> {
top,
projection,
from,
selection,
lateral_views,
selection,
group_by,
cluster_by,
distribute_by,
Expand Down

0 comments on commit a12dd0e

Please sign in to comment.