From e0632cdf8b6931284db217b405b820988a444d2c Mon Sep 17 00:00:00 2001 From: Jazz Turner-Baggs <473256+jazzz@users.noreply.github.com> Date: Thu, 19 Feb 2026 11:52:08 -0800 Subject: [PATCH] Update constructor string type --- conversations/src/api.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/conversations/src/api.rs b/conversations/src/api.rs index 048546a..9588663 100644 --- a/conversations/src/api.rs +++ b/conversations/src/api.rs @@ -49,8 +49,9 @@ pub struct ContextHandle(pub(crate) Context); /// # Returns /// Opaque handle to the store. Must be freed with destroy_context() #[ffi_export] -pub fn create_context(name: String) -> repr_c::Box { - Box::new(ContextHandle(Context::new_with_name(name))).into() +pub fn create_context(name: repr_c::String) -> repr_c::Box { + // Deference name to to `str` and then borrow to &str + Box::new(ContextHandle(Context::new_with_name(&*name))).into() } /// Returns the friendly name of the context's identity