summaryrefslogtreecommitdiff
path: root/tests/fuzz/src
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fuzz/src')
-rw-r--r--tests/fuzz/src/compile.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fuzz/src/compile.rs b/tests/fuzz/src/compile.rs
index 37e21deb..3dedfb73 100644
--- a/tests/fuzz/src/compile.rs
+++ b/tests/fuzz/src/compile.rs
@@ -19,7 +19,7 @@ struct FuzzWorld {
impl FuzzWorld {
fn new(text: &str) -> Self {
let data = typst_assets::fonts().next().unwrap();
- let font = Font::new(Bytes::from_static(data), 0).unwrap();
+ let font = Font::new(Bytes::new(data), 0).unwrap();
let book = FontBook::from_fonts([&font]);
Self {
library: LazyHash::new(Library::default()),