Skip to content
This repository was archived by the owner on Jun 8, 2024. It is now read-only.

compatibility with typst-syntax 0.11.0 #171

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 119 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ itertools = "0.10.5"
regex = "1.7.3"
toml = "0.7.3"
tracing = { version = "0.1.37", features = ["attributes"] }
typst-syntax = { git = "https://github.com/typst/typst.git", tag = "v0.10.0" }
typst-syntax = "0.11.0"
serde = { version = "1.0.171", features = ["serde_derive"] }
unicode-width = "0.1.11"

Expand Down
2 changes: 1 addition & 1 deletion src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub(crate) fn format_args_tight(
) -> String {
let mut res = String::new();
let is_destruct_and_one_arg = typst_syntax::ast::Destructuring::from_untyped(parent)
.is_some_and(|x| x.bindings().count() == 1);
.is_some_and(|x| x.bindings().len() == 1);
let mut missing_trailing = is_destruct_and_one_arg;

for (s, node) in children.iter().zip(parent.children()) {
Expand Down
Loading