Skip to main content

redact_paths

Function redact_paths 

Source
pub fn redact_paths(message: &str, known: &[&Path]) -> String
Expand description

message with every path reduced to its file name, so error texts in the run report hold no directories (D103): first the paths given on the command line (known, longest first), then any quoted path, then any bare absolute path (e.g. in an operating-system message).