diff options
author | pommicket <pommicket@gmail.com> | 2025-09-10 15:23:21 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-10 15:23:21 -0400 |
commit | 223b87b08ffff33138aabb88da9d4e2f9229c6e1 (patch) | |
tree | 1f34cc7be2eea5828f5a673d5ec5b600c3229060 | |
parent | d0e6a4a80abcca245aaa0960c779c5d6b0a6d521 (diff) |
Fix: has() no longer counts as reading a key
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |