We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 91d0f4b + 735abee commit 89298a9Copy full SHA for 89298a9
python/src/lib.rs
@@ -3,7 +3,7 @@ use pyo3::prelude::*;
3
4
/// Formats the sum of two numbers as string.
5
#[pyfunction]
6
-fn call<'a>(name: &'a [u8], args: &'a [u8]) -> PyResult<&'a [u8]> {
+fn call<'a>(name: &'a [u8], args: &'a [u8]) -> PyResult<Vec<u8>> {
7
kcl_lang::call(name, args).map_err(|e| PyErr::new::<PyException, _>(e.to_string()))
8
}
9
0 commit comments