style: format the whole tree with cargo fmt (stock defaults, #35)

One-time, mechanical reformat — no functional changes. The tree was not
rustfmt-clean (~1800 hunks across ~100 files); this brings it to stock
`cargo fmt` defaults so a `cargo fmt --check` CI gate can follow.
Behaviour-preserving: 2509 pass / 0 fail / 1 ignored (unchanged baseline),
clippy clean. A .git-blame-ignore-revs entry follows so `git blame`
skips this commit.
This commit is contained in:
claude@clouddev1
2026-06-17 21:39:19 +00:00
parent e9606b5f6d
commit 41b7e9a049
102 changed files with 8017 additions and 4975 deletions
+16 -28
View File
@@ -143,10 +143,7 @@ fn after_values_keyword_expects_open_paren() {
// Trailing space so we're past the `values` word boundary
// — without it the partial-prefix logic re-offers `values`
// itself as the candidate that matches the typed prefix.
let a = assess_at_end(
"insert into Customers (Name) values ",
&schema,
);
let a = assess_at_end("insert into Customers (Name) values ", &schema);
assert!(matches!(a.state, InputState::IncompleteAtEof));
assert_candidate_present(&a, &["("]);
crate::snap!("after_values_keyword", a);
@@ -159,10 +156,7 @@ fn after_values_keyword_expects_open_paren() {
#[test]
fn after_values_open_paren_form_a_text_column_prose_names_column() {
let schema = schema_serial_pk();
let a = assess_at_end(
"insert into Customers (Name) values (",
&schema,
);
let a = assess_at_end("insert into Customers (Name) values (", &schema);
assert!(
hint_prose_contains(&a, "Name"),
"expected column name in prose, got {:?}",
@@ -179,13 +173,12 @@ fn after_values_open_paren_form_a_text_column_prose_names_column() {
#[test]
fn after_values_open_paren_form_a_serial_column_offers_null_to_auto_generate() {
let schema = schema_serial_pk();
let a = assess_at_end(
"insert into Customers (id, Name) values (",
&schema,
let a = assess_at_end("insert into Customers (id, Name) values (", &schema);
let prose = hint_prose(&a).unwrap_or_else(|| panic!("expected Prose hint, got {:?}", a.hint));
assert!(
prose.contains("id"),
"prose should name `id`, got {prose:?}"
);
let prose = hint_prose(&a)
.unwrap_or_else(|| panic!("expected Prose hint, got {:?}", a.hint));
assert!(prose.contains("id"), "prose should name `id`, got {prose:?}");
assert!(
prose.contains("null") && prose.contains("auto-generate"),
"prose should mention `null` to auto-generate, got {prose:?}",
@@ -200,8 +193,7 @@ fn mid_value_list_after_comma_advances_to_next_column_prose() {
"insert into Customers (Name, Email) values ('Alice', ",
&schema,
);
let prose = hint_prose(&a)
.unwrap_or_else(|| panic!("expected Prose hint, got {:?}", a.hint));
let prose = hint_prose(&a).unwrap_or_else(|| panic!("expected Prose hint, got {:?}", a.hint));
assert!(
prose.contains("Email"),
"prose should name `Email`, got {prose:?}",
@@ -281,9 +273,8 @@ fn form_a_complete_with_serial_in_list_parses() {
fn form_a_int_slot_prose_says_integer() {
let schema = schema_every_type();
let a = assess_at_end("insert into Things (k) values (", &schema);
let prose = hint_prose(&a).unwrap_or_else(|| {
panic!("expected Prose for int slot, got {:?}", a.hint)
});
let prose =
hint_prose(&a).unwrap_or_else(|| panic!("expected Prose for int slot, got {:?}", a.hint));
assert!(
prose.contains("integer"),
"int-slot prose should say `integer`, got {prose:?}",
@@ -295,9 +286,8 @@ fn form_a_int_slot_prose_says_integer() {
fn form_a_date_slot_prose_says_yyyy_mm_dd() {
let schema = schema_every_type();
let a = assess_at_end("insert into Things (dt) values (", &schema);
let prose = hint_prose(&a).unwrap_or_else(|| {
panic!("expected Prose for date slot, got {:?}", a.hint)
});
let prose =
hint_prose(&a).unwrap_or_else(|| panic!("expected Prose for date slot, got {:?}", a.hint));
assert!(
prose.contains("YYYY-MM-DD"),
"date-slot prose should reference YYYY-MM-DD format, got {prose:?}",
@@ -309,9 +299,8 @@ fn form_a_date_slot_prose_says_yyyy_mm_dd() {
fn form_a_bool_slot_prose_mentions_true_false() {
let schema = schema_every_type();
let a = assess_at_end("insert into Things (b) values (", &schema);
let prose = hint_prose(&a).unwrap_or_else(|| {
panic!("expected Prose for bool slot, got {:?}", a.hint)
});
let prose =
hint_prose(&a).unwrap_or_else(|| panic!("expected Prose for bool slot, got {:?}", a.hint));
assert!(
prose.contains("true") && prose.contains("false"),
"bool-slot prose should mention `true`/`false`, got {prose:?}",
@@ -323,9 +312,8 @@ fn form_a_bool_slot_prose_mentions_true_false() {
fn form_a_shortid_slot_prose_mentions_null_to_auto_generate() {
let schema = schema_every_type();
let a = assess_at_end("insert into Things (sid) values (", &schema);
let prose = hint_prose(&a).unwrap_or_else(|| {
panic!("expected Prose for shortid slot, got {:?}", a.hint)
});
let prose = hint_prose(&a)
.unwrap_or_else(|| panic!("expected Prose for shortid slot, got {:?}", a.hint));
assert!(
prose.contains("null") && prose.contains("auto-generate"),
"shortid-slot prose should mention `null` to auto-generate, got {prose:?}",