Skip to content

Commit

Permalink
update for rust 1.77 pretty-printing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
trevyn committed Feb 8, 2024
1 parent d547db1 commit e68beb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test.migrations.toml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ sql_type = "BLOB"

[[output_generated_tables_do_not_edit.personintegrationtest.columns]]
name = "field_array_u8"
rust_type = "Option < [u8 ; 99] >"
rust_type = "Option < [u8; 99] >"
sql_type = "BLOB"

[[output_generated_tables_do_not_edit.personintegrationtest.columns]]
Expand Down Expand Up @@ -278,7 +278,7 @@ sql_type = "BLOB NOT NULL"

[[output_generated_tables_do_not_edit.personintegrationtest.columns]]
name = "field_array_u8_not_null"
rust_type = "[u8 ; 5]"
rust_type = "[u8; 5]"
sql_type = "BLOB NOT NULL"

[[output_generated_tables_do_not_edit.personintegrationtest.columns]]
Expand Down
4 changes: 2 additions & 2 deletions turbosql-impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ struct MiniColumn {
}

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

#[derive(Clone, Debug)]
struct SingleColumn {
Expand Down

0 comments on commit e68beb9

Please sign in to comment.