diff options
| author | KillTheMule <KillTheMule@users.noreply.github.com> | 2023-09-04 11:46:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-04 11:46:44 +0200 |
| commit | 1cc67d5df228eab95131082122753f29d4c15a07 (patch) | |
| tree | 40e152c023728516e386ab083410c9006b10f9d3 /crates/typst-syntax | |
| parent | 499c5f24448d313b988721f212536fe170953905 (diff) | |
Update ast.rs (#2057)
Rust 1.74 warns about this, noting it will be a hard error soon. Quite annoying when developing on an unstable compiler now already ;)
Diffstat (limited to 'crates/typst-syntax')
| -rw-r--r-- | crates/typst-syntax/src/ast.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst-syntax/src/ast.rs b/crates/typst-syntax/src/ast.rs index fd3bfebe..e1741403 100644 --- a/crates/typst-syntax/src/ast.rs +++ b/crates/typst-syntax/src/ast.rs @@ -451,7 +451,7 @@ node! { impl Shorthand<'_> { /// A list of all shorthands in markup mode. - pub const MARKUP_LIST: &[(&'static str, char)] = &[ + pub const MARKUP_LIST: &'static [(&'static str, char)] = &[ ("...", '…'), ("~", '\u{00A0}'), ("--", '\u{2013}'), @@ -460,7 +460,7 @@ impl Shorthand<'_> { ]; /// A list of all shorthands in math mode. - pub const MATH_LIST: &[(&'static str, char)] = &[ + pub const MATH_LIST: &'static [(&'static str, char)] = &[ ("...", '…'), ("-", '\u{2212}'), ("'", '′'), |
