fix: resolve Clippy manual is_multiple_of warnings

This commit is contained in:
lzt404 committed 2026-08-04 19:02:19 +08:00
1 parent c1933eb5e0
commit 44fb5a70fd
1 file changed
+2 -2
+2 -2
View File
@@ -5248,9 +5248,9 @@ fn claude_code_model_settings(
}
fn format_context_window(context_window: u64) -> String {
if context_window % 1_000_000 == 0 {
if context_window.is_multiple_of(1_000_000) {
format!("{}M", context_window / 1_000_000)
} else if context_window % 1_000 == 0 {
} else if context_window.is_multiple_of(1_000) {
format!("{}K", context_window / 1_000)
} else {
context_window.to_string()