mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-21 20:18:06 +02:00
cargo fmt
This commit is contained in:
parent
bec7bbf96c
commit
3a35cd6c8f
294 changed files with 6809 additions and 3911 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue