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:
parent
499c5f2444
commit
1cc67d5df2
@ -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}'),
|
||||
("'", '′'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user