From a12dd0e83a06ef6bf707199df84003f9412b504a Mon Sep 17 00:00:00 2001 From: Chojan Shang Date: Fri, 25 Jun 2021 03:43:11 +0800 Subject: [PATCH] *: make clippy happy Signed-off-by: Chojan Shang --- src/parser.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/parser.rs b/src/parser.rs index 863fc66d0..266bc0c62 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -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,