aboutsummaryrefslogtreecommitdiff
path: root/src/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefile')
-rw-r--r--src/makefile/macro.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/makefile/macro.rs b/src/makefile/macro.rs
index f62d21d..43aff90 100644
--- a/src/makefile/macro.rs
+++ b/src/makefile/macro.rs
@@ -85,7 +85,7 @@ impl<'parent, 'lookup> Set<'parent, 'lookup> {
#[cfg(feature = "full")]
pub fn is_defined(&self, name: &str) -> bool {
- self.data.contains_key(name)
+ self.data.get(name).map_or(false, |(_, x)| !x.is_empty())
}
// `remove` is fine, but I think for "remove-and-return" `pop` is better