*: make clippy happy

Signed-off-by: Chojan Shang <psiace@outlook.com>
This commit is contained in:
Chojan Shang 2021-06-25 03:43:11 +08:00
parent 0c52491191
commit a12dd0e83a

View file

@ -2202,8 +2202,8 @@ impl<'a> Parser<'a> {
Ok(Query { Ok(Query {
with, with,
body, body,
limit,
order_by, order_by,
limit,
offset, offset,
fetch, fetch,
}) })
@ -2358,8 +2358,7 @@ impl<'a> Parser<'a> {
]) // This couldn't possibly be a bad idea ]) // This couldn't possibly be a bad idea
})? })?
.into_iter() .into_iter()
.filter(|i| i.is_some()) .flatten()
.map(|i| i.unwrap())
.collect(); .collect();
lateral_views.push(LateralView { lateral_views.push(LateralView {
@ -2414,8 +2413,8 @@ impl<'a> Parser<'a> {
top, top,
projection, projection,
from, from,
selection,
lateral_views, lateral_views,
selection,
group_by, group_by,
cluster_by, cluster_by,
distribute_by, distribute_by,