From 695f53b31955e99851c9e7c47c76f5863cea56a9 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Mon, 5 Apr 2021 15:09:40 -0600 Subject: fix `dir` implementation --- src/makefile/functions.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/makefile/functions.rs b/src/makefile/functions.rs index 2098334..712b944 100644 --- a/src/makefile/functions.rs +++ b/src/makefile/functions.rs @@ -241,6 +241,7 @@ mod file_name { Path::new(word) .parent() .and_then(Path::to_str) + .filter(|x| !x.is_empty()) .unwrap_or("./") }) .collect::>(); -- cgit v1.2.3