*: 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 {
with,
body,
limit,
order_by,
limit,
offset,
fetch,
})
@ -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 {
@ -2414,8 +2413,8 @@ impl<'a> Parser<'a> {
top,
projection,
from,
selection,
lateral_views,
selection,
group_by,
cluster_by,
distribute_by,