From 58b395e7ee34a1b87fb5fdd7b53a4353ae018435 Mon Sep 17 00:00:00 2001 From: Neel Chotai Date: Sat, 29 Feb 2020 21:30:19 +0000 Subject: [PATCH] fix compiler warning --- src/utils/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/mod.rs b/src/utils/mod.rs index 1c34960..7f0d853 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -41,7 +41,7 @@ impl PartialEq for Node { pub fn is_a_parent_of>(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>(filenames: Vec

) -> HashSet {