fix(ci): split checks and enforce warning-free Rust builds

This commit is contained in:
t8y2 committed 2026-07-20 13:45:59 +08:00
1 parent dcbb1c69c5
commit 083ffe7a35
44 files changed
+363 -324

No files matched your search

+12 -16
View File
@@ -158,25 +158,21 @@ fn redact_sensitive_assignments(sql: &str) -> String {
while j < chars.len() && chars[j].is_whitespace() {
j += 1;
}
if j < chars.len() && (chars[j] == '=' || chars[j] == ':') {
if is_sensitive_key(&key) {
out.push_str(&key);
for k in i..j {
out.push(chars[k]);
}
if j < chars.len() && (chars[j] == '=' || chars[j] == ':') && is_sensitive_key(&key) {
out.push_str(&key);
out.extend(chars[i..j].iter().copied());
out.push(chars[j]);
j += 1;
while j < chars.len() && chars[j].is_whitespace() {
out.push(chars[j]);
j += 1;
while j < chars.len() && chars[j].is_whitespace() {
out.push(chars[j]);
j += 1;
}
while j < chars.len() && !chars[j].is_whitespace() {
j += 1;
}
out.push_str("[REDACTED]");
i = j;
continue;
}
while j < chars.len() && !chars[j].is_whitespace() {
j += 1;
}
out.push_str("[REDACTED]");
i = j;
continue;
}
out.push_str(&key);
}