diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-05 10:59:00 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-05 10:59:00 +0100 |
| commit | 1bb05677faa7bd6566e1231ed2b16547f476b143 (patch) | |
| tree | 2d60ab2b9d3f839cb52864df89a0965eb3bc6e92 | |
| parent | f57ce8643178c533a43c42baff3553f8613fb5ac (diff) | |
Small improvements
| -rw-r--r-- | library/src/layout/mod.rs | 4 | ||||
| -rw-r--r-- | src/diag.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/library/src/layout/mod.rs b/library/src/layout/mod.rs index 047d78f9..30c424bc 100644 --- a/library/src/layout/mod.rs +++ b/library/src/layout/mod.rs @@ -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, diff --git a/src/diag.rs b/src/diag.rs index 29e43b91..e244ba7c 100644 --- a/src/diag.rs +++ b/src/diag.rs @@ -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),+)) }; } |
