Skip to main content

normalize_imports

Function normalize_imports 

Source
pub fn normalize_imports(source: &str) -> String
Expand description

Rewrite the entry’s abstract Import statements into a single canonical block: sorted, de-duplicated, placed where the first import was, with the rest removed. Prose and code are untouched. Idempotent.