Keep only the highest level modules in the list of modules
Keep only the highest level modules in the list of modules

If both `a::b` and `a::b::c` are inserted, keep only `a::b`. This
ensures that the first item before a given submodule `a::b::d` will be
either a supermodule, or a different module completely

cardoe/stderrlog-rs