aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/constraint.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/mozart/src/constraint.rs')
-rw-r--r--crates/mozart/src/constraint.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/mozart/src/constraint.rs b/crates/mozart/src/constraint.rs
index ff9b14e..d009028 100644
--- a/crates/mozart/src/constraint.rs
+++ b/crates/mozart/src/constraint.rs
@@ -235,7 +235,10 @@ fn normalize_pre_release(s: &str) -> String {
.to_string();
// Extract the alphabetic prefix (stability name)
- let alpha: String = normalized.chars().take_while(|c| c.is_alphabetic()).collect();
+ let alpha: String = normalized
+ .chars()
+ .take_while(|c| c.is_alphabetic())
+ .collect();
// Extract only digits from the rest (strip separators like dots)
let num: String = normalized
.chars()