Skip to content

Commit

Permalink
Merge pull request #29 from nnethercote/make-tables-static
Browse files Browse the repository at this point in the history
Make the tables `static`.
  • Loading branch information
Manishearth authored May 15, 2022
2 parents 23c1e7d + 568741e commit 959d659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn bsearch_range_table(c: char, r: &[(char, char)]) -> bool {
}

pub mod derived_property {
pub const XID_Continue_table: &[(char, char)] = &[
static XID_Continue_table: &[(char, char)] = &[
('\u{30}', '\u{39}'),
('\u{41}', '\u{5a}'),
('\u{5f}', '\u{5f}'),
Expand Down Expand Up @@ -807,7 +807,7 @@ pub mod derived_property {
super::bsearch_range_table(c, XID_Continue_table)
}

pub const XID_Start_table: &[(char, char)] = &[
static XID_Start_table: &[(char, char)] = &[
('\u{41}', '\u{5a}'),
('\u{61}', '\u{7a}'),
('\u{aa}', '\u{aa}'),
Expand Down

0 comments on commit 959d659

Please sign in to comment.