ide_db::imports::merge_imports

Function common_prefix

source
pub fn common_prefix(lhs: &Path, rhs: &Path) -> Option<(Path, Path)>
Expand description

Traverses both paths until they differ, returning the common prefix of both.