Skip to content

Commit e68beb9

Browse files
committed
update for rust 1.77 pretty-printing changes
rust-lang/rust#120227 (comment)
1 parent d547db1 commit e68beb9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test.migrations.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ sql_type = "BLOB"
203203

204204
[[output_generated_tables_do_not_edit.personintegrationtest.columns]]
205205
name = "field_array_u8"
206-
rust_type = "Option < [u8 ; 99] >"
206+
rust_type = "Option < [u8; 99] >"
207207
sql_type = "BLOB"
208208

209209
[[output_generated_tables_do_not_edit.personintegrationtest.columns]]
@@ -278,7 +278,7 @@ sql_type = "BLOB NOT NULL"
278278

279279
[[output_generated_tables_do_not_edit.personintegrationtest.columns]]
280280
name = "field_array_u8_not_null"
281-
rust_type = "[u8 ; 5]"
281+
rust_type = "[u8; 5]"
282282
sql_type = "BLOB NOT NULL"
283283

284284
[[output_generated_tables_do_not_edit.personintegrationtest.columns]]

turbosql-impl/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ struct MiniColumn {
6868
}
6969

7070
static OPTION_U8_ARRAY_RE: Lazy<regex::Regex> =
71-
Lazy::new(|| regex::Regex::new(r"^Option < \[u8 ; \d+\] >$").unwrap());
71+
Lazy::new(|| regex::Regex::new(r"^Option\s*<\s*\[\s*u8\s*;\s*\d+\s*\]\s*>$").unwrap());
7272
static U8_ARRAY_RE: Lazy<regex::Regex> =
73-
Lazy::new(|| regex::Regex::new(r"^\[u8 ; \d+\]$").unwrap());
73+
Lazy::new(|| regex::Regex::new(r"^\[\s*u8\s*;\s*\d+\s*\]$").unwrap());
7474

7575
#[derive(Clone, Debug)]
7676
struct SingleColumn {

0 commit comments

Comments
 (0)