summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-03-01 11:27:10 +0100
committerLaurenz <laurmaedje@gmail.com>2023-03-01 11:27:10 +0100
commitab841188e3d2687ee8f436336e6fde337985a83e (patch)
tree23504e66ea84e62e4354fa76ac199fc1ff658e8a /library
parent8f246406c61f3710fa6659e85d7c715b001ea05d (diff)
Bump `ecow`
Diffstat (limited to 'library')
-rw-r--r--library/Cargo.toml2
-rw-r--r--library/src/meta/numbering.rs2
-rw-r--r--library/src/meta/outline.rs2
-rw-r--r--library/src/meta/reference.rs2
-rw-r--r--library/src/prelude.rs2
5 files changed, 5 insertions, 5 deletions
diff --git a/library/Cargo.toml b/library/Cargo.toml
index d725a393..b532883b 100644
--- a/library/Cargo.toml
+++ b/library/Cargo.toml
@@ -13,7 +13,7 @@ bench = false
typst = { path = ".." }
comemo = { git = "https://github.com/typst/comemo" }
csv = "1"
-ecow = { git = "https://github.com/typst/ecow" }
+ecow = "0.1"
hypher = "0.1"
kurbo = "0.8"
lipsum = { git = "https://github.com/reknih/lipsum" }
diff --git a/library/src/meta/numbering.rs b/library/src/meta/numbering.rs
index c187c18d..5b7cd92b 100644
--- a/library/src/meta/numbering.rs
+++ b/library/src/meta/numbering.rs
@@ -211,7 +211,7 @@ impl NumberingKind {
let mut n = n.get();
match self {
Self::Arabic => {
- format_eco!("{n}")
+ eco_format!("{n}")
}
Self::Letter => {
n -= 1;
diff --git a/library/src/meta/outline.rs b/library/src/meta/outline.rs
index 2d1cf185..d9eea0a9 100644
--- a/library/src/meta/outline.rs
+++ b/library/src/meta/outline.rs
@@ -194,7 +194,7 @@ impl Show for OutlineNode {
}
// Add the page number and linebreak.
- let end = TextNode::packed(format_eco!("{}", loc.page));
+ let end = TextNode::packed(eco_format!("{}", loc.page));
seq.push(end.linked(Destination::Internal(loc)));
seq.push(LinebreakNode { justify: false }.pack());
diff --git a/library/src/meta/reference.rs b/library/src/meta/reference.rs
index 465a20ad..e64751f7 100644
--- a/library/src/meta/reference.rs
+++ b/library/src/meta/reference.rs
@@ -43,6 +43,6 @@ impl RefNode {
impl Show for RefNode {
fn show(&self, _: &mut Vt, _: &Content, _: StyleChain) -> SourceResult<Content> {
- Ok(TextNode::packed(format_eco!("@{}", self.0)))
+ Ok(TextNode::packed(eco_format!("@{}", self.0)))
}
}
diff --git a/library/src/prelude.rs b/library/src/prelude.rs
index c8f6fe97..22458a55 100644
--- a/library/src/prelude.rs
+++ b/library/src/prelude.rs
@@ -8,7 +8,7 @@ pub use std::num::NonZeroUsize;
#[doc(no_inline)]
pub use comemo::{Track, Tracked, TrackedMut};
#[doc(no_inline)]
-pub use ecow::{format_eco, EcoString};
+pub use ecow::{eco_format, EcoString};
#[doc(no_inline)]
pub use typst::diag::{bail, error, At, SourceResult, StrResult};
#[doc(no_inline)]