diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-13 21:40:57 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-13 21:41:33 +0100 |
| commit | 724e9b140cc0a87208aa9c4914b1b8aeddf25c30 (patch) | |
| tree | 632984e85eb21c5a5a04c397a74725df6f7f8a28 /library/src/text | |
| parent | 880b1847bd4170ce80be5781c2163ba085cdcaff (diff) | |
Locatability and synthesis improvements
Diffstat (limited to 'library/src/text')
| -rw-r--r-- | library/src/text/raw.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/src/text/raw.rs b/library/src/text/raw.rs index 3f03ba8e..b6cc0d3d 100644 --- a/library/src/text/raw.rs +++ b/library/src/text/raw.rs @@ -121,8 +121,8 @@ impl RawNode { } impl Synthesize for RawNode { - fn synthesize(&self, _: &mut Vt, styles: StyleChain) -> Content { - self.clone().with_lang(self.lang(styles)).pack() + fn synthesize(&mut self, _: &Vt, styles: StyleChain) { + self.push_lang(self.lang(styles)); } } |
