From 223b87b08ffff33138aabb88da9d4e2f9229c6e1 Mon Sep 17 00:00:00 2001 From: pommicket Date: Wed, 10 Sep 2025 15:23:21 -0400 Subject: Fix: has() no longer counts as reading a key --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index e30d7d9..2c1d3dd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -793,7 +793,7 @@ impl Configuration { /// Returns `true` if `key` is defined in this configuration. #[must_use] pub fn has(&self, key: &str) -> bool { - self.get(key).is_some() + self.get_val(key, false).is_some() } /// Get value associated with `key`, or else use `default` if it isn't defined. -- cgit v1.2.3