diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-07-31 22:59:14 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-08-01 00:00:36 +0200 |
| commit | 3c92bad9a7cd6b880de197806443ffcce2cac9d8 (patch) | |
| tree | 1faf79c66e23bc37711af16ad690a9878e28d348 /src/layout/frame.rs | |
| parent | fbd3d191137aac8188ab8c6503d257d65d873972 (diff) | |
Pretty-printed diagnostics with traceback
Diffstat (limited to 'src/layout/frame.rs')
| -rw-r--r-- | src/layout/frame.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/layout/frame.rs b/src/layout/frame.rs index 82ac71a9..6d5cc2f3 100644 --- a/src/layout/frame.rs +++ b/src/layout/frame.rs @@ -146,9 +146,8 @@ impl Text { pub fn encode_glyphs_be(&self) -> Vec<u8> { let mut bytes = Vec::with_capacity(2 * self.glyphs.len()); for glyph in &self.glyphs { - let id = glyph.id; - bytes.push((id >> 8) as u8); - bytes.push((id & 0xff) as u8); + bytes.push((glyph.id >> 8) as u8); + bytes.push((glyph.id & 0xff) as u8); } bytes } |
