From be7cfc85d08c545abfac08098b7b33b4bd71f37e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 27 Oct 2024 19:04:55 +0100 Subject: Split out four new crates (#5302) --- crates/typst-cli/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates/typst-cli/src/main.rs') diff --git a/crates/typst-cli/src/main.rs b/crates/typst-cli/src/main.rs index b14e687e..464ad624 100644 --- a/crates/typst-cli/src/main.rs +++ b/crates/typst-cli/src/main.rs @@ -94,9 +94,10 @@ fn print_error(msg: &str) -> io::Result<()> { #[cfg(not(feature = "self-update"))] mod update { - use crate::args::UpdateCommand; use typst::diag::{bail, StrResult}; + use crate::args::UpdateCommand; + pub fn update(_: &UpdateCommand) -> StrResult<()> { bail!( "self-updating is not enabled for this executable, \ -- cgit v1.2.3