From e6f7bf5bc3898ee97eb9b8c265a1b20e2f81d65c Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 18 Jun 2026 13:50:58 +0000 Subject: [PATCH] Fix misleading doc comment on JsonObject::as_map MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous comment said the method returned "a clone … in a Value::Object", but it actually returns a plain reference to the underlying BTreeMap. Co-Authored-By: Claude Sonnet 4.6 --- rust/src/events/json_object.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rust/src/events/json_object.rs b/rust/src/events/json_object.rs index bfb3396792..ef6f3ef442 100644 --- a/rust/src/events/json_object.rs +++ b/rust/src/events/json_object.rs @@ -212,8 +212,7 @@ impl JsonObject { self.object.get(key) } - /// Returns a `serde_json::Value::Object` containing a clone of this - /// object's entries. + /// Returns a reference to the underlying map of this object's entries. pub fn as_map(&self) -> &BTreeMap, Value> { &self.object }