summaryrefslogtreecommitdiff
path: root/library/src/layout
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-27 00:49:02 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-27 01:00:57 +0100
commit7caf98fe42797eab59a39ef71071030c9790245a (patch)
treecadf45a53aad29f11bf30a164f646b5a73bb5f16 /library/src/layout
parent6bafc6391061d4b589dea835705a08b25a4df9f8 (diff)
Switch `StrResult` to `EcoString`
Diffstat (limited to 'library/src/layout')
-rw-r--r--library/src/layout/page.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/src/layout/page.rs b/library/src/layout/page.rs
index 9d5d4f56..42db02c3 100644
--- a/library/src/layout/page.rs
+++ b/library/src/layout/page.rs
@@ -196,7 +196,7 @@ impl Cast<Spanned<Value>> for Marginal {
Value::Str(v) => Ok(Self::Content(TextNode::packed(v))),
Value::Content(v) => Ok(Self::Content(v)),
Value::Func(v) => Ok(Self::Func(v, value.span)),
- v => Err(format!(
+ v => Err(format_eco!(
"expected none, content or function, found {}",
v.type_name(),
)),