Skip to content

Commit

Permalink
Fix cargo hack
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Jun 1, 2024
1 parent c5dcbb8 commit 35903f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions cli/src/convert.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::path::{Path, PathBuf};
#[cfg(feature = "text")]
use std::sync::Arc;
use svg2pdf::{ConversionOptions, PageOptions};

Expand Down
9 changes: 7 additions & 2 deletions src/util/context.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use pdf_writer::{Chunk, Content, Filter, Ref};
use usvg::Tree;

#[cfg(feature = "text")]
use {
crate::render::text,
crate::render::text::{write_font, Font},
std::collections::HashMap,
usvg::fontdb::ID,
usvg::Tree,
};

use super::helper::deflate;
Expand All @@ -26,7 +26,12 @@ pub struct Context {
}

impl Context {
pub fn new(tree: &Tree, options: ConversionOptions) -> Self {
pub fn new(
#[allow(unused_variables)]
tree: &Tree,
options: ConversionOptions) -> Self {

#[allow(unused_mut)]
let mut ctx = Self {
ref_allocator: RefAllocator::new(),
options,
Expand Down

0 comments on commit 35903f5

Please sign in to comment.