diff --git a/crates/rayexec_execution/src/logical/resolver/expr_resolver.rs b/crates/rayexec_execution/src/logical/resolver/expr_resolver.rs index a1f28779a..6d7f49d19 100644 --- a/crates/rayexec_execution/src/logical/resolver/expr_resolver.rs +++ b/crates/rayexec_execution/src/logical/resolver/expr_resolver.rs @@ -767,8 +767,8 @@ impl<'a> ExpressionResolver<'a> { over: ast::WindowSpec, resolve_context: &mut ResolveContext, ) -> Result> { - async fn resolve_window_frame_bound<'a>( - resolver: &ExpressionResolver<'a>, + async fn resolve_window_frame_bound( + resolver: &ExpressionResolver<'_>, bound: ast::WindowFrameBound, resolve_context: &mut ResolveContext, ) -> Result> { diff --git a/crates/rayexec_parser/src/parser.rs b/crates/rayexec_parser/src/parser.rs index 5837945ed..119022ab1 100644 --- a/crates/rayexec_parser/src/parser.rs +++ b/crates/rayexec_parser/src/parser.rs @@ -304,10 +304,7 @@ impl<'a> Parser<'a> { /// Parse any of the provided keywords, returning which keyword was parsed. pub(crate) fn parse_one_of_keywords(&mut self, keywords: &[Keyword]) -> Option { let idx = self.idx; - let tok = match self.next() { - Some(tok) => tok, - None => return None, - }; + let tok = self.next()?; for &kw in keywords { match &tok.token {