diff options
| author | Malo <57839069+MDLC01@users.noreply.github.com> | 2024-11-17 20:08:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-17 19:08:23 +0000 |
| commit | 5c37a1cfea2a08b08f4af34ba867748fd90c687e (patch) | |
| tree | d5dec4ae7ff0b3238d84224a325eddc1a1427dee /docs/src/lib.rs | |
| parent | 5672cc2a29379f7743f66c46a7192d698a733047 (diff) | |
Use `codex` for symbols (#5421)
Diffstat (limited to 'docs/src/lib.rs')
| -rw-r--r-- | docs/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/src/lib.rs b/docs/src/lib.rs index bc9b53c9..9228a990 100644 --- a/docs/src/lib.rs +++ b/docs/src/lib.rs @@ -671,15 +671,15 @@ fn symbols_model(resolver: &dyn Resolver, group: &GroupData) -> SymbolsModel { for (variant, c) in symbol.variants() { let shorthand = |list: &[(&'static str, char)]| { - list.iter().copied().find(|&(_, x)| x == c.char()).map(|(s, _)| s) + list.iter().copied().find(|&(_, x)| x == c).map(|(s, _)| s) }; list.push(SymbolModel { name: complete(variant), markup_shorthand: shorthand(typst::syntax::ast::Shorthand::LIST), math_shorthand: shorthand(typst::syntax::ast::MathShorthand::LIST), - codepoint: c.char() as _, - accent: typst::math::Accent::combine(c.char()).is_some(), + codepoint: c as _, + accent: typst::math::Accent::combine(c).is_some(), alternates: symbol .variants() .filter(|(other, _)| other != &variant) |
