mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
Small improvements
This commit is contained in:
parent
f57ce86431
commit
1bb05677fa
@ -58,7 +58,7 @@ impl LayoutRoot for Content {
|
|||||||
#[comemo::memoize]
|
#[comemo::memoize]
|
||||||
fn cached(
|
fn cached(
|
||||||
node: &Content,
|
node: &Content,
|
||||||
world: comemo::Tracked<dyn World>,
|
world: Tracked<dyn World>,
|
||||||
provider: TrackedMut<StabilityProvider>,
|
provider: TrackedMut<StabilityProvider>,
|
||||||
introspector: Tracked<Introspector>,
|
introspector: Tracked<Introspector>,
|
||||||
styles: StyleChain,
|
styles: StyleChain,
|
||||||
@ -104,7 +104,7 @@ impl Layout for Content {
|
|||||||
#[comemo::memoize]
|
#[comemo::memoize]
|
||||||
fn cached(
|
fn cached(
|
||||||
node: &Content,
|
node: &Content,
|
||||||
world: comemo::Tracked<dyn World>,
|
world: Tracked<dyn World>,
|
||||||
provider: TrackedMut<StabilityProvider>,
|
provider: TrackedMut<StabilityProvider>,
|
||||||
introspector: Tracked<Introspector>,
|
introspector: Tracked<Introspector>,
|
||||||
styles: StyleChain,
|
styles: StyleChain,
|
||||||
|
@ -38,7 +38,7 @@ macro_rules! __error {
|
|||||||
};
|
};
|
||||||
|
|
||||||
($span:expr, $fmt:expr, $($arg:expr),+ $(,)?) => {
|
($span:expr, $fmt:expr, $($arg:expr),+ $(,)?) => {
|
||||||
$crate::diag::error!($span, format!($fmt, $($arg),+))
|
$crate::diag::error!($span, $crate::util::format_eco!($fmt, $($arg),+))
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user