pub fn redacted_steps(steps: &[Step], patterns: &[String]) -> Vec<Step>Expand description
Apply --redact patterns to a borrowed step slice, returning a
redacted clone. Every exporter accepts an already-redacted &[Step]
slice rather than the patterns themselves, so masking lives in one
place and the format-specific code stays simple. Returns the
original slice unchanged (via clone) when patterns is empty so
the common case allocates nothing extra for unused features.