diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-23 10:54:25 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-23 12:00:06 +0100 |
| commit | b2a3d3f235fb5a23322435b854460f52db772114 (patch) | |
| tree | 441ded5e4fcc0a702fe877fc6a3e3fedaaacabb5 /src/model/items.rs | |
| parent | 65aa27014d090628cfef14b0679d86dd611188b9 (diff) | |
More general evaluation interface
Diffstat (limited to 'src/model/items.rs')
| -rw-r--r-- | src/model/items.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/items.rs b/src/model/items.rs index 771756fe..50ea8b60 100644 --- a/src/model/items.rs +++ b/src/model/items.rs @@ -42,7 +42,7 @@ macro_rules! item { #[derive(Copy, Clone)] pub struct LangItems { /// The root layout function. - pub root: fn( + pub layout: fn( content: &Content, world: Tracked<dyn World>, styles: StyleChain, @@ -104,7 +104,7 @@ impl Debug for LangItems { impl Hash for LangItems { fn hash<H: Hasher>(&self, state: &mut H) { - (self.root as usize).hash(state); + (self.layout as usize).hash(state); (self.em as usize).hash(state); (self.dir as usize).hash(state); self.space.hash(state); |
