From a2fcc1bf288c5162de7b2158166de62cb0610083 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 11 Feb 2021 21:22:06 +0100 Subject: =?UTF-8?q?Small=20fixes=20=E2=99=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/export/pdf.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/export') 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 { - PdfExporter::new(frames, env).write() +pub fn export(env: &Env, frames: &[Frame]) -> Vec { + 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); -- cgit v1.2.3