From 1cc67d5df228eab95131082122753f29d4c15a07 Mon Sep 17 00:00:00 2001 From: KillTheMule Date: Mon, 4 Sep 2023 11:46:44 +0200 Subject: [PATCH] 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 ;) --- crates/typst-syntax/src/ast.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/typst-syntax/src/ast.rs b/crates/typst-syntax/src/ast.rs index fd3bfebe7..e17414032 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}'), ("'", '′'),