From a55ad1cc44c12836eca5652d231902968e04eea1 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 5 May 2026 12:20:32 +0900 Subject: refactor(core): centralize version constant in mozart-core --- crates/mozart/src/commands/diagnose.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/mozart/src/commands/diagnose.rs') diff --git a/crates/mozart/src/commands/diagnose.rs b/crates/mozart/src/commands/diagnose.rs index 2320ddc..54296ce 100644 --- a/crates/mozart/src/commands/diagnose.rs +++ b/crates/mozart/src/commands/diagnose.rs @@ -1,5 +1,6 @@ use clap::Args; use colored::Colorize; +use mozart_core::MOZART_VERSION; use mozart_core::console::{Console, Verbosity}; use std::path::{Path, PathBuf}; @@ -80,8 +81,7 @@ fn print_info_line(result: &CheckResult, console: &Console) { /// Check 1: Mozart version info (informational). fn check_version() -> CheckResult { - let version = env!("CARGO_PKG_VERSION"); - CheckResult::Info(format!("Mozart version {version}")) + CheckResult::Info(format!("Mozart version {MOZART_VERSION}")) } /// Check 2 & 3: HTTP/HTTPS connectivity to Packagist. -- cgit v1.3.1