mirror of
https://github.com/hexedtech/codemp-sublime.git
synced 2024-12-23 13:14:52 +01:00
removed old select_buffer code from the bindings, atm not required.
Former-commit-id: 01a0dee921f726229aa40f3253792bafd845a0c6
This commit is contained in:
parent
d96acdde48
commit
5e1c0e597f
2 changed files with 15 additions and 13 deletions
|
@ -1 +1 @@
|
|||
ef547495939b20dc50fcf0505d8ebd77dc3721f1
|
||||
b6bceb4b1aed8179ebc591aa695da27a964bb8ed
|
26
src/lib.rs
26
src/lib.rs
|
@ -161,20 +161,22 @@ impl PyClientHandle {
|
|||
})
|
||||
}
|
||||
|
||||
fn select_buffer<'a>(&'a self, py: Python<'a>) -> PyResult<&'a PyAny> {
|
||||
let rc = self.0.clone();
|
||||
// TODO: SELECT_BUFFER IS NO LONGER A CLIENT FUNCTION.
|
||||
// low prio, add it back eventually.
|
||||
// fn select_buffer<'a>(&'a self, py: Python<'a>) -> PyResult<&'a PyAny> {
|
||||
// let rc = self.0.clone();
|
||||
|
||||
pyo3_asyncio::tokio::future_into_py(py, async move {
|
||||
let cont = rc.select_buffer()
|
||||
.await
|
||||
.map_err(PyCodempError::from)?;
|
||||
// pyo3_asyncio::tokio::future_into_py(py, async move {
|
||||
// let cont = rc.select_buffer()
|
||||
// .await
|
||||
// .map_err(PyCodempError::from)?;
|
||||
|
||||
Python::with_gil(|py| {
|
||||
let pystr: Py<PyString> = PyString::new(py, cont.as_str()).into();
|
||||
Ok(pystr)
|
||||
})
|
||||
})
|
||||
}
|
||||
// Python::with_gil(|py| {
|
||||
// let pystr: Py<PyString> = PyString::new(py, cont.as_str()).into();
|
||||
// Ok(pystr)
|
||||
// })
|
||||
// })
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue