From 2aa7bda3cb21ce6c052b82e08bcab79a625d04f2 Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Sun, 31 May 2026 02:42:52 +0800 Subject: Enhance code quality across the entire codebase --- mling/src/cli.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mling/src/cli.rs') diff --git a/mling/src/cli.rs b/mling/src/cli.rs index 705c6b4..b628021 100644 --- a/mling/src/cli.rs +++ b/mling/src/cli.rs @@ -17,6 +17,11 @@ pub use read::*; pub mod install; pub use install::*; +/// Entry point for the CLI application. +/// +/// # Panics +/// +/// Panics on Windows if the virtual terminal processing cannot be enabled. pub fn cli_entry() { let mut program = ThisProgram::new(); @@ -62,7 +67,7 @@ pub fn cli_entry() { #[cfg(windows)] colored::control::set_virtual_terminal(true).unwrap(); - program.exec(); + let _ = program.exec(); } #[renderer] -- cgit