chore: add todo

This commit is contained in:
Jorge Hermo 2025-01-13 01:29:32 +01:00
parent e01b8f8343
commit 06208af2e8
No known key found for this signature in database
GPG key ID: 70E7B2F0D5479A67

View file

@ -319,6 +319,8 @@ pub fn json_object(values: &[OwnedValue]) -> crate::Result<OwnedValue> {
[key, value] => {
let key = match key {
// TODO: is this tp_string call ok?
// TODO: We can construct the IndexMap from Rc<String>, but we must enable the
// serde's `rc` feature so we can serialize Rc<String>
OwnedValue::Text(t) => t.value.to_string(),
// TODO: I matched sqlite message error here. Is this ok?
_ => crate::bail_constraint_error!("labels must be TEXT"),