Small improvements

This commit is contained in:
Laurenz 2022-12-05 10:59:00 +01:00
parent f57ce86431
commit 1bb05677fa
2 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ impl LayoutRoot for Content {
#[comemo::memoize]
fn cached(
node: &Content,
world: comemo::Tracked<dyn World>,
world: Tracked<dyn World>,
provider: TrackedMut<StabilityProvider>,
introspector: Tracked<Introspector>,
styles: StyleChain,
@ -104,7 +104,7 @@ impl Layout for Content {
#[comemo::memoize]
fn cached(
node: &Content,
world: comemo::Tracked<dyn World>,
world: Tracked<dyn World>,
provider: TrackedMut<StabilityProvider>,
introspector: Tracked<Introspector>,
styles: StyleChain,

View File

@ -38,7 +38,7 @@ macro_rules! __error {
};
($span:expr, $fmt:expr, $($arg:expr),+ $(,)?) => {
$crate::diag::error!($span, format!($fmt, $($arg),+))
$crate::diag::error!($span, $crate::util::format_eco!($fmt, $($arg),+))
};
}