summaryrefslogtreecommitdiff
path: root/src/pdf.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-03-14 15:15:09 +0100
committerLaurenz <laurmaedje@gmail.com>2019-03-14 15:15:09 +0100
commit9b3386f8a3c023be7f948c484f3b60208b9869d0 (patch)
tree18db916bd961a2be5157697fef65cf189262100a /src/pdf.rs
parent67b19450347f8c61116f173e27b12c8da160d85d (diff)
Hide subengines and improve Compiler API 🕳
Diffstat (limited to 'src/pdf.rs')
-rw-r--r--src/pdf.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdf.rs b/src/pdf.rs
index e430af92..e0c64c6f 100644
--- a/src/pdf.rs
+++ b/src/pdf.rs
@@ -31,7 +31,7 @@ struct Offsets {
impl<'a, W: Write> PdfCreator<'a, W> {
/// Create a new _PDF_ Creator.
- pub fn new(target: &'a mut W, doc: &'a Document) -> PdfResult<PdfCreator<'a, W>> {
+ pub fn new(doc: &'a Document, target: &'a mut W) -> PdfResult<PdfCreator<'a, W>> {
// Calculate a unique id for all object to come
let catalog = 1;
let page_tree = catalog + 1;