cargo fmt

This commit is contained in:
elipeter 2026-05-21 14:35:42 -05:00
parent bec7bbf96c
commit 3a35cd6c8f
294 changed files with 6809 additions and 3911 deletions

View file

@ -211,7 +211,9 @@ impl Scrubber {
return true;
}
let lower = text.to_ascii_lowercase();
PII_LITERAL_SUBSTRINGS.iter().any(|needle| lower.contains(*needle))
PII_LITERAL_SUBSTRINGS
.iter()
.any(|needle| lower.contains(*needle))
}
/// Scrub `text`, returning a new `String` whose value is either the
@ -572,7 +574,10 @@ mod tests {
#[test]
fn truncate_at_exact_boundary_unchanged() {
let bytes = vec![0u8; PAYLOAD_CAPTURE_LIMIT_BYTES];
assert_eq!(truncate_payload_bytes(&bytes).len(), PAYLOAD_CAPTURE_LIMIT_BYTES);
assert_eq!(
truncate_payload_bytes(&bytes).len(),
PAYLOAD_CAPTURE_LIMIT_BYTES
);
}
#[test]