Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Oct 30, 2024
1 parent 2c80827 commit f95a19c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benches/oneshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fn bench_content() -> Vec<u8> {
c.save_state();
c.set_flatness(10);
c.restore_state();
c.finish()
c.finish().to_bytes()
}

fn bench_new() -> Pdf {
Expand Down
2 changes: 1 addition & 1 deletion src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit f95a19c

Please sign in to comment.