fix compiler warning

This commit is contained in:
Neel Chotai
2020-02-29 21:30:19 +00:00
parent 3beb2b5274
commit 58b395e7ee
+1 -1
View File
@@ -41,7 +41,7 @@ impl PartialEq for Node {
pub fn is_a_parent_of<P: AsRef<Path>>(parent: P, child: P) -> bool {
let parent = parent.as_ref();
let child = child.as_ref();
(child.starts_with(parent) && !parent.starts_with(child))
child.starts_with(parent) && !parent.starts_with(child)
}
pub fn simplify_dir_names<P: AsRef<Path>>(filenames: Vec<P>) -> HashSet<PathBuf> {