Skip to content

Commit 5434818

Browse files
committed
code fmt
1 parent a797872 commit 5434818

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

clickgraph-tck/tests/tck.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,12 @@ async fn when_executing_query(world: &mut TckWorld, step: &Step) {
201201
// Reject write operations: ClickGraph is a read-only engine.
202202
{
203203
let upper = query.to_uppercase();
204-
let contains_delete = upper.split(|c: char| !c.is_ascii_alphabetic()).any(|w| w == "DELETE");
204+
let contains_delete = upper
205+
.split(|c: char| !c.is_ascii_alphabetic())
206+
.any(|w| w == "DELETE");
205207
if contains_delete {
206-
world.error = Some(
207-
"DELETE is not supported: ClickGraph is a read-only query engine".to_string(),
208-
);
208+
world.error =
209+
Some("DELETE is not supported: ClickGraph is a read-only query engine".to_string());
209210
return;
210211
}
211212
}
@@ -247,7 +248,6 @@ async fn when_executing_query(world: &mut TckWorld, step: &Step) {
247248
world.result_columns.clear();
248249
}
249250
}
250-
251251
}
252252

253253
// ---------------------------------------------------------------------------

src/query_planner/analyzer/query_validation.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,11 @@ impl AnalyzerPass for QueryValidation {
134134
// Validate array subscript index types.
135135
// When the child is a WithClause, build a map of alias → non-integer kind
136136
// so we can detect `WITH true AS idx RETURN list[idx]` style errors.
137-
let alias_types =
138-
if let LogicalPlan::WithClause(wc) = projection.input.as_ref() {
139-
build_non_integer_alias_map(&wc.items)
140-
} else {
141-
HashMap::new()
142-
};
137+
let alias_types = if let LogicalPlan::WithClause(wc) = projection.input.as_ref() {
138+
build_non_integer_alias_map(&wc.items)
139+
} else {
140+
HashMap::new()
141+
};
143142

144143
for item in &projection.items {
145144
if let Some(err_msg) =

0 commit comments

Comments
 (0)