summaryrefslogtreecommitdiff
path: root/src/export
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-10-04 19:57:39 +0200
committerLaurenz <laurmaedje@gmail.com>2020-10-04 19:57:39 +0200
commitc1dd872b34507a9f45b39a8a6ac70606b642a19d (patch)
treee3afa36228321f7b0680d8c989818f306b80d43e /src/export
parent105f70867ddcb2c73860bf0c55f1380eda2437ca (diff)
Remove unncessary wrappers and typedefs 🛑
Diffstat (limited to 'src/export')
-rw-r--r--src/export/pdf.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/export/pdf.rs b/src/export/pdf.rs
index d4d1adf2..fb1b3e3b 100644
--- a/src/export/pdf.rs
+++ b/src/export/pdf.rs
@@ -138,7 +138,7 @@ impl<'a, W: Write> PdfExporter<'a, W> {
let mut face = FaceId::MAX;
let mut size = 0.0;
- for (pos, element) in &page.elements.0 {
+ for (pos, element) in &page.elements {
match element {
LayoutElement::Text(shaped) => {
if shaped.face != face || shaped.size != size {
@@ -287,7 +287,7 @@ fn remap_fonts(layouts: &[BoxLayout]) -> (HashMap<FaceId, usize>, Vec<FaceId>) {
// We want to find out which font faces are used at all. To do that, look at
// each text element to find out which face is uses.
for layout in layouts {
- for (_, element) in &layout.elements.0 {
+ for (_, element) in &layout.elements {
let LayoutElement::Text(shaped) = element;
to_pdf.entry(shaped.face).or_insert_with(|| {
let next_id = to_layout.len();