diff options
| author | Laurenz <ritters_werth@outlook.com> | 2023-12-18 12:18:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-18 12:18:41 +0100 |
| commit | 22ba6825db3b82e0b0f83ef6052f17289893e385 (patch) | |
| tree | cf69e7ac0eeb49f13ffb0b81e36461e07cb766ba /tests/src | |
| parent | 356bdeba18153efd4209657182971e22bdaf4db2 (diff) | |
Key/Value data from CLI (#2894)
Diffstat (limited to 'tests/src')
| -rw-r--r-- | tests/src/benches.rs | 2 | ||||
| -rw-r--r-- | tests/src/tests.rs | 2 |
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)); |
