Skip to main content

normalize_separators

Function normalize_separators 

Source
pub fn normalize_separators(label: impl Into<String>) -> String
Expand description

Normalize the separators in a path label to /. Labels are built from Path::display(), which uses \ on Windows, while every grouping rule in this module and the reports splits on / — without this, on Windows every file collapses into package . and the package count degrades to 1.