diff options
| author | T0mstone <39707032+T0mstone@users.noreply.github.com> | 2025-06-11 15:28:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-11 13:28:03 +0000 |
| commit | d7e0c52dd5b6b34861c4104925d2440f5a770a47 (patch) | |
| tree | 27feecc4ea6e5a19bf50daa7a1f59fe4897cb206 /docs | |
| parent | d1c7757da8e84ac68dcf58546a7bbaebceea8277 (diff) | |
Use `codex::ModifierSet` (#6159)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/Cargo.toml | 1 | ||||
| -rw-r--r-- | docs/src/lib.rs | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/docs/Cargo.toml b/docs/Cargo.toml index acc55175..64e26128 100644 --- a/docs/Cargo.toml +++ b/docs/Cargo.toml @@ -22,6 +22,7 @@ typst-utils = { workspace = true } typst-assets = { workspace = true, features = ["fonts"] } typst-dev-assets = { workspace = true } clap = { workspace = true, optional = true } +codex = { workspace = true } ecow = { workspace = true } heck = { workspace = true } pulldown-cmark = { workspace = true } diff --git a/docs/src/lib.rs b/docs/src/lib.rs index d848c59b..b81f0dc6 100644 --- a/docs/src/lib.rs +++ b/docs/src/lib.rs @@ -712,11 +712,11 @@ fn symbols_model(resolver: &dyn Resolver, group: &GroupData) -> SymbolsModel { let mut list = vec![]; for (name, binding) in group.module().scope().iter() { let Value::Symbol(symbol) = binding.read() else { continue }; - let complete = |variant: &str| { + let complete = |variant: codex::ModifierSet<&str>| { if variant.is_empty() { name.clone() } else { - eco_format!("{}.{}", name, variant) + eco_format!("{}.{}", name, variant.as_str()) } }; |
