diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-12-30 11:37:11 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-12-30 12:00:12 +0100 |
| commit | f5dcb84e36a38182218c7f907b861b12d2bd2c1c (patch) | |
| tree | 1fce04fb53d2ad5b61f5f3151e43d80e2684e579 /src/export | |
| parent | fef55025177ea4f248e61b68fab365bfbc0e47fb (diff) | |
Make clippy a bit happier
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; } |
