summaryrefslogtreecommitdiff
path: root/tests/src
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/benches.rs2
-rw-r--r--tests/src/tests.rs2
2 files changed, 2 insertions, 2 deletions
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));