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] #[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,

View File

@ -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),+))
}; };
} }