From 6f7171ead0d352101cd75d2bc0222d708870f55b Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 22 Feb 2026 18:52:10 +0900 Subject: fix(registry): handle Stability::Dev in version constraint builder Replace unreachable\!() with proper @dev suffix output. Although Dev is normally handled by an early return, this prevents a panic if the control flow is ever refactored. Co-Authored-By: Claude Opus 4.6 --- crates/mozart-registry/src/version.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/mozart-registry/src/version.rs') diff --git a/crates/mozart-registry/src/version.rs b/crates/mozart-registry/src/version.rs index 1e0f99a..8a26e92 100644 --- a/crates/mozart-registry/src/version.rs +++ b/crates/mozart-registry/src/version.rs @@ -125,7 +125,7 @@ pub fn find_recommended_require_version( Stability::RC => format!("{constraint}@RC"), Stability::Beta => format!("{constraint}@beta"), Stability::Alpha => format!("{constraint}@alpha"), - Stability::Dev => unreachable!(), + Stability::Dev => format!("{constraint}@dev"), } } -- cgit v1.3.1