From f95a19c07a1b3e3ee021c1199e91f19badb57d46 Mon Sep 17 00:00:00 2001 From: Laurenz Stampfl Date: Wed, 30 Oct 2024 22:22:00 +0100 Subject: [PATCH] Fix clippy --- benches/oneshot.rs | 2 +- src/functions.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/benches/oneshot.rs b/benches/oneshot.rs index 844fedb..12ae997 100644 --- a/benches/oneshot.rs +++ b/benches/oneshot.rs @@ -47,7 +47,7 @@ fn bench_content() -> Vec { c.save_state(); c.set_flatness(10); c.restore_state(); - c.finish() + c.finish().to_bytes() } fn bench_new() -> Pdf { diff --git a/src/functions.rs b/src/functions.rs index a8883be..42de42c 100644 --- a/src/functions.rs +++ b/src/functions.rs @@ -361,7 +361,7 @@ impl<'a> PostScriptOp<'a> { Self::Real(r) => buf.push_decimal(r), Self::Integer(i) => buf.push_val(i), Self::If(ops) => { - Self::write_slice(&ops, buf); + Self::write_slice(ops, buf); buf.push(b' '); buf.extend_slice(self.operator()); }