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 ;)
This commit is contained in:
KillTheMule 2023-09-04 11:46:44 +02:00 committed by GitHub
parent 499c5f2444
commit 1cc67d5df2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}'),
("'", ''),