diff --git a/src/ffi/python/controllers.rs b/src/ffi/python/controllers.rs index 50718af..334abdd 100644 --- a/src/ffi/python/controllers.rs +++ b/src/ffi/python/controllers.rs @@ -72,9 +72,8 @@ impl BufferController { } #[pyo3(name = "ack")] - fn pyack(&self, py: Python, v: Vec) -> PyResult<()> { - let this = self.clone(); - a_sync_allow_threads!(py, this.ack(v)) + fn pyack(&self, py: Python, v: Vec) -> () { + self.ack(v) } #[pyo3(name = "send")] diff --git a/src/ffi/python/mod.rs b/src/ffi/python/mod.rs index f9f8963..4e6ecd1 100644 --- a/src/ffi/python/mod.rs +++ b/src/ffi/python/mod.rs @@ -279,14 +279,14 @@ impl TextChange { ) -> PyResult { if let Some(kwds) = kwds { Ok(Self { - start_idx, - end_idx, + start_idx: start, + end_idx: end, content, }) } else { Ok(Self { - start_idx, - end_idx, + start_idx: start, + end_idx: end, content, }) }