summaryrefslogtreecommitdiff
path: root/crates/typst-cli/src/fonts.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-cli/src/fonts.rs')
-rw-r--r--crates/typst-cli/src/fonts.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-cli/src/fonts.rs b/crates/typst-cli/src/fonts.rs
index 3e89e0d6..6b4fc2fc 100644
--- a/crates/typst-cli/src/fonts.rs
+++ b/crates/typst-cli/src/fonts.rs
@@ -12,7 +12,7 @@ use walkdir::WalkDir;
use crate::args::FontsCommand;
/// Execute a font listing command.
-pub fn fonts(command: FontsCommand) -> StrResult<()> {
+pub fn fonts(command: &FontsCommand) -> StrResult<()> {
let mut searcher = FontSearcher::new();
searcher.search(&command.font_paths);