From f6dd6914d4ba4b1b5fae1f29992fd1a2b4cd96f5 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 22 Feb 2026 19:13:00 +0900 Subject: chore: cargo fmt --- crates/mozart-core/src/version_bumper.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'crates/mozart-core/src') diff --git a/crates/mozart-core/src/version_bumper.rs b/crates/mozart-core/src/version_bumper.rs index 3bc672f..5d6e75e 100644 --- a/crates/mozart-core/src/version_bumper.rs +++ b/crates/mozart-core/src/version_bumper.rs @@ -401,8 +401,12 @@ fn split_and_parts(constraint: &str) -> (Vec<&str>, &str) { } // If what follows starts with an operator, split here if i < bytes.len() - && (bytes[i] == b'>' || bytes[i] == b'<' || bytes[i] == b'!' - || bytes[i] == b'=' || bytes[i] == b'^' || bytes[i] == b'~') + && (bytes[i] == b'>' + || bytes[i] == b'<' + || bytes[i] == b'!' + || bytes[i] == b'=' + || bytes[i] == b'^' + || bytes[i] == b'~') { parts.push(&constraint[current_start..space_start]); current_start = i; @@ -418,9 +422,7 @@ fn split_and_parts(constraint: &str) -> (Vec<&str>, &str) { /// Check if a constraint part is a lower bound (can be bumped). fn is_lower_bound(part: &str) -> bool { - part.starts_with(">=") - || part.starts_with('^') - || part.starts_with('~') + part.starts_with(">=") || part.starts_with('^') || part.starts_with('~') } // ─── Helpers ────────────────────────────────────────────────────────────────── -- cgit v1.3.1