chore: remove TODO

This commit is contained in:
Jorge Hermo 2025-01-15 22:40:13 +01:00
parent f38da70920
commit f6655b38c4
No known key found for this signature in database
GPG key ID: 70E7B2F0D5479A67

View file

@ -438,7 +438,6 @@ pub fn json_object(values: &[OwnedValue]) -> crate::Result<OwnedValue> {
}
_ => crate::bail_constraint_error!("json_object requires an even number of values"),
})
// TODO: collecting into a IndexMap does not allow for repeated keys
.collect::<Result<IndexMap<String, Val>, _>>()?;
let result = crate::json::to_string(&value_map).unwrap();