diff options
Diffstat (limited to 'src/export')
| -rw-r--r-- | src/export/pdf.rs | 2 | ||||
| -rw-r--r-- | src/export/subset.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/export/pdf.rs b/src/export/pdf.rs index b5f4c009..f0fd10f6 100644 --- a/src/export/pdf.rs +++ b/src/export/pdf.rs @@ -390,7 +390,7 @@ impl<'a> PageExporter<'a> { // Make the coordinate system start at the top-left. self.bottom = frame.size.y.to_f32(); self.content.transform([1.0, 0.0, 0.0, -1.0, 0.0, self.bottom]); - self.write_frame(&frame); + self.write_frame(frame); Page { size: frame.size, content: self.content, diff --git a/src/export/subset.rs b/src/export/subset.rs index b58e042e..68d45502 100644 --- a/src/export/subset.rs +++ b/src/export/subset.rs @@ -656,7 +656,7 @@ mod cff { if count > 0 { let offsize = usize::from(s.read::<u8>()?); - if offsize < 1 || offsize > 4 { + if !matches!(offsize, 1 ..= 4) { return None; } |
