Skip to content

Commit

Permalink
(refactor): Use more idiomatic combinatorial
Browse files Browse the repository at this point in the history
  • Loading branch information
Oyelowo committed Jan 19, 2025
1 parent 391e0bc commit 336cdbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion query-builder-macros/src/statement_parser/if_else.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ impl IfElseWithoutIfKeywordMetaAst {
|| self
.else_meta
.as_ref()
.map_or(false, |else_meta| else_meta.body.has_return_statement())
.is_some_and(|else_meta| else_meta.body.has_return_statement())
}
}

Expand Down
2 changes: 1 addition & 1 deletion query-builder-macros/src/statement_parser/query_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl QueriesChainParser {
pub fn _is_definitely_query_block(&self) -> bool {
let last_stmt = self.statements.last();

last_stmt.map_or(false, |s| s.is_return_statement())
last_stmt.is_some_and(|s| s.is_return_statement())
}

pub fn is_likely_query_block(&self) -> bool {
Expand Down

0 comments on commit 336cdbd

Please sign in to comment.