fn module_prefix(path: &[UseSegment]) -> &[UseSegment]Expand description
Returns all but the last portion of the module path, except in the case of top-level modules (length 1), which remain unchanged. Used for Module-level imports_granularity.
fn module_prefix(path: &[UseSegment]) -> &[UseSegment]Returns all but the last portion of the module path, except in the case of top-level modules (length 1), which remain unchanged. Used for Module-level imports_granularity.