aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-05 15:09:40 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-05 15:09:40 -0600
commit695f53b31955e99851c9e7c47c76f5863cea56a9 (patch)
tree9bbf6345e8c8e5b5c82a15bfe0e2e411a01d9321
parent8b5579ad7e4154931e468130ccc35c98c2e1d578 (diff)
downloadmakers-695f53b31955e99851c9e7c47c76f5863cea56a9.tar.gz
makers-695f53b31955e99851c9e7c47c76f5863cea56a9.zip
fix `dir` implementation
-rw-r--r--src/makefile/functions.rs1
1 files changed, 1 insertions, 0 deletions
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::<Vec<_>>();