Skip to content

Commit e5d74b0

Browse files
imorspitfire55
authored andcommitted
fix a couple of clippy warnings
1 parent 2b1ac9b commit e5d74b0

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/graphql.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4468,9 +4468,7 @@ fn is_aggregatable(column: &Column, op: &AggregateOperation) -> bool {
44684468

44694469
/// Returns the appropriate GraphQL scalar type for an aggregate result.
44704470
fn aggregate_result_type(column: &Column, op: &AggregateOperation) -> Option<Scalar> {
4471-
let Some(ref type_) = column.type_ else {
4472-
return None;
4473-
};
4471+
let type_ = column.type_.as_ref()?;
44744472

44754473
// Removed duplicated closures, will use helper functions below
44764474

src/transpile.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,10 +1126,7 @@ impl ConnectionBuilder {
11261126

11271127
// Build aggregate CTE if requested
11281128
let aggregate_cte = if requested_aggregates {
1129-
let select_list_str = match aggregate_select_list {
1130-
Some(list) => list,
1131-
None => String::new(),
1132-
};
1129+
let select_list_str = aggregate_select_list.unwrap_or_default();
11331130
format!(
11341131
r#"
11351132
,__aggregates(agg_result) as (

0 commit comments

Comments
 (0)