summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <ritters_werth@outlook.com>2023-12-18 12:18:41 +0100
committerGitHub <noreply@github.com>2023-12-18 12:18:41 +0100
commit22ba6825db3b82e0b0f83ef6052f17289893e385 (patch)
treecf69e7ac0eeb49f13ffb0b81e36461e07cb766ba /tests
parent356bdeba18153efd4209657182971e22bdaf4db2 (diff)
Key/Value data from CLI (#2894)
Diffstat (limited to 'tests')
-rw-r--r--tests/fuzz/src/compile.rs2
-rw-r--r--tests/src/benches.rs2
-rw-r--r--tests/src/tests.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/fuzz/src/compile.rs b/tests/fuzz/src/compile.rs
index deb71778..c6345051 100644
--- a/tests/fuzz/src/compile.rs
+++ b/tests/fuzz/src/compile.rs
@@ -24,7 +24,7 @@ impl FuzzWorld {
let font = Font::new(FONT.into(), 0).unwrap();
let book = FontBook::from_fonts([&font]);
Self {
- library: Prehashed::new(Library::build()),
+ library: Prehashed::new(Library::default()),
book: Prehashed::new(book),
font,
source: Source::detached(text),
diff --git a/tests/src/benches.rs b/tests/src/benches.rs
index 5ec0be61..6d5f3133 100644
--- a/tests/src/benches.rs
+++ b/tests/src/benches.rs
@@ -91,7 +91,7 @@ impl BenchWorld {
let book = FontBook::from_fonts([&font]);
Self {
- library: Prehashed::new(Library::build()),
+ library: Prehashed::new(Library::default()),
book: Prehashed::new(book),
font,
source: Source::detached(TEXT),
diff --git a/tests/src/tests.rs b/tests/src/tests.rs
index f0678309..5e6b7b40 100644
--- a/tests/src/tests.rs
+++ b/tests/src/tests.rs
@@ -192,7 +192,7 @@ fn library() -> Library {
// Set page width to 120pt with 10pt margins, so that the inner page is
// exactly 100pt wide. Page height is unbounded and font size is 10pt so
// that it multiplies to nice round numbers.
- let mut lib = Library::build();
+ let mut lib = Library::default();
lib.styles
.set(PageElem::set_width(Smart::Custom(Abs::pt(120.0).into())));
lib.styles.set(PageElem::set_height(Smart::Auto));