Skip to main content

largest_owner

Function largest_owner 

Source
pub fn largest_owner(
    group: &CloneGroup,
    root: &Path,
    resolver: &OwnershipResolver,
) -> String
Expand description

Pick the largest owner for a clone group: most instances wins, ties broken alphabetically (smallest key wins).

Iterates a BTreeMap so iteration order is alphabetical. The first key to reach the running maximum wins, which means equal counts resolve to the alphabetically-smallest key.