Skip to content

Commit 4df07d2

Browse files
committed
style(hybrid): apply cargo fmt + clippy fixes
1 parent 27a4b8b commit 4df07d2

1 file changed

Lines changed: 4 additions & 15 deletions

File tree

src/reader/hybrid.rs

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,7 @@ mod tests {
207207
// The name is `col`; query uses `col_id`. Must not route.
208208
let mut set = HashSet::new();
209209
set.insert("col".to_string());
210-
assert!(!references_staged_name(
211-
"SELECT col_id FROM users",
212-
&set
213-
));
210+
assert!(!references_staged_name("SELECT col_id FROM users", &set));
214211
}
215212

216213
#[test]
@@ -230,10 +227,7 @@ mod tests {
230227
// because `"` is not an identifier char.
231228
let mut set = HashSet::new();
232229
set.insert("orders".to_string());
233-
assert!(references_staged_name(
234-
r#"SELECT * FROM "orders""#,
235-
&set
236-
));
230+
assert!(references_staged_name(r#"SELECT * FROM "orders""#, &set));
237231
}
238232

239233
#[test]
@@ -389,20 +383,15 @@ mod tests {
389383
let reader = HybridReader::new(data, staging);
390384

391385
reader
392-
.register(
393-
"staged_only",
394-
df! { "x" => vec![1_i64, 2] }.unwrap(),
395-
true,
396-
)
386+
.register("staged_only", df! { "x" => vec![1_i64, 2] }.unwrap(), true)
397387
.unwrap();
398388

399389
// Query references BOTH names. Routing matches on `staged_only`, so the
400390
// whole query goes to staging — which doesn't have `remote_only`. The
401391
// wrong-route case (data side) would silently succeed because the
402392
// primary has both tables. So `is_err()` plus a staging-side error
403393
// message mentioning `remote_only` confirms correct routing.
404-
let result = reader
405-
.execute_sql("SELECT s.x, r.y FROM staged_only s, remote_only r");
394+
let result = reader.execute_sql("SELECT s.x, r.y FROM staged_only s, remote_only r");
406395
assert!(
407396
result.is_err(),
408397
"cross-side query must error when staging lacks the remote table"

0 commit comments

Comments
 (0)