diff --git a/crates/typst-cli/src/fonts.rs b/crates/typst-cli/src/fonts.rs
index f4711b826..7793840c0 100644
--- a/crates/typst-cli/src/fonts.rs
+++ b/crates/typst-cli/src/fonts.rs
@@ -1,6 +1,6 @@
-use std::cell::OnceCell;
use std::fs;
use std::path::PathBuf;
+use std::sync::OnceLock;
use fontdb::{Database, Source};
use typst::diag::StrResult;
@@ -42,7 +42,7 @@ pub struct FontSlot {
/// to a collection.
index: u32,
/// The lazily loaded font.
- font: OnceCell