From b746520a8076a067124bf5a7821772f60f6ae4f9 Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin Date: Sun, 2 Feb 2025 19:11:41 +0800 Subject: [PATCH] fix: error --- Cargo.lock | 1 + crates/typst-preview/Cargo.toml | 1 + crates/typst-preview/src/outline.rs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 38777d5c..5952c3cd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4653,6 +4653,7 @@ dependencies = [ "serde", "serde_json", "tinymist-assets 0.12.18 (registry+https://github.com/rust-lang/crates.io-index)", + "tinymist-std", "tokio", "typst", "typst-assets", diff --git a/crates/typst-preview/Cargo.toml b/crates/typst-preview/Cargo.toml index ea023dcf..448f9a20 100644 --- a/crates/typst-preview/Cargo.toml +++ b/crates/typst-preview/Cargo.toml @@ -13,6 +13,7 @@ rust-version.workspace = true [dependencies] typst.workspace = true tinymist-assets.workspace = true +tinymist-std.workspace = true typst-assets.workspace = true comemo.workspace = true diff --git a/crates/typst-preview/src/outline.rs b/crates/typst-preview/src/outline.rs index c1f76cd6..38d16f1f 100644 --- a/crates/typst-preview/src/outline.rs +++ b/crates/typst-preview/src/outline.rs @@ -1,8 +1,8 @@ use std::num::NonZeroUsize; use reflexo_typst::debug_loc::DocumentPosition; -use reflexo_typst::TypstDocument; use serde::{Deserialize, Serialize}; +use tinymist_std::typst::TypstDocument; use typst::foundations::{Content, NativeElement, Packed, StyleChain}; use typst::introspection::Introspector; use typst::model::HeadingElem;