summaryrefslogtreecommitdiff
path: root/src/export
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-02-11 21:22:06 +0100
committerLaurenz <laurmaedje@gmail.com>2021-02-11 22:24:42 +0100
commita2fcc1bf288c5162de7b2158166de62cb0610083 (patch)
treec9d825abf6909168a9b2e7e98987a3e95202ff92 /src/export
parent146eda102a5d0241c96a808a847f3b855340765e (diff)
Small fixes ♻
Diffstat (limited to 'src/export')
-rw-r--r--src/export/pdf.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/export/pdf.rs b/src/export/pdf.rs
index b2a6bbfd..9f355278 100644
--- a/src/export/pdf.rs
+++ b/src/export/pdf.rs
@@ -25,8 +25,8 @@ use crate::layout::{Element, Fill, Frame, Shape};
/// images can be included in the _PDF_.
///
/// Returns the raw bytes making up the _PDF_ document.
-pub fn export(frames: &[Frame], env: &Env) -> Vec<u8> {
- PdfExporter::new(frames, env).write()
+pub fn export(env: &Env, frames: &[Frame]) -> Vec<u8> {
+ PdfExporter::new(env, frames).write()
}
struct PdfExporter<'a> {
@@ -39,7 +39,7 @@ struct PdfExporter<'a> {
}
impl<'a> PdfExporter<'a> {
- fn new(frames: &'a [Frame], env: &'a Env) -> Self {
+ fn new(env: &'a Env, frames: &'a [Frame]) -> Self {
let mut writer = PdfWriter::new(1, 7);
writer.set_indent(2);