diff options
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) |
