Skip to content

Commit 2305ed6

Browse files
committed
Make CI happy
1 parent 24397f1 commit 2305ed6

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
- Added support for text embedding.
1010
- Added a `text` feature flag.
1111
- The `convert_str` method has been removed. You should now always convert your SVG string into a `usvg`
12-
tree yourself.
12+
tree yourself and then call either `to_pdf` or `to_chunk`.
1313
- The `convert_tree` method has been renamed into `to_pdf`, and now requires you to provide the fontdb
14-
used for the `usvg` tree.
14+
used for the `usvg` tree, unless you have disabled the `text` feature.
1515
- `convert_tree_into` has been renamed into `to_chunk` and now returns an independent chunk as well
16-
as the object ID of the SVG.
16+
as the object ID of the actual SVG in the chunk.
1717

1818
- TODO: The CLI options have been (temporarily) removed. They will be readded before the next release.
1919
- TODO: Add tests for CLI and svg options

tests/src/api.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#[allow(unused_imports)]
22
use {
3-
std::collections::HashMap,
43
crate::{convert_svg, run_test_impl},
54
crate::{render_pdf, FONTDB},
65
pdf_writer::{Content, Finish, Name, Pdf, Rect, Ref, Str},
6+
std::collections::HashMap,
77
std::path::Path,
88
svg2pdf::Options,
99
};
@@ -36,8 +36,7 @@ fn to_chunk() {
3636
let tree =
3737
svg2pdf::usvg::Tree::from_str(&svg, &svg2pdf::usvg::Options::default(), &db)
3838
.unwrap();
39-
let (mut svg_chunk, svg_id) =
40-
svg2pdf::to_chunk(&tree, svg2pdf::Options::default(), &db);
39+
let (svg_chunk, svg_id) = svg2pdf::to_chunk(&tree, svg2pdf::Options::default(), &db);
4140

4241
let mut map = HashMap::new();
4342
let svg_chunk =

0 commit comments

Comments
 (0)