diff --git a/src/python/mod.rs b/src/python/mod.rs index 279043f..c5847f4 100644 --- a/src/python/mod.rs +++ b/src/python/mod.rs @@ -15,7 +15,7 @@ use crate::idx; use crate::prelude::*; #[pymodule] -fn hidefix(_py: Python, m: &PyModule) -> PyResult<()> { +fn hidefix(m: &Bound<'_, PyModule>) -> PyResult<()> { m.add_class::()?; Ok(()) } @@ -164,7 +164,7 @@ impl Dataset { let arr = arr.downcast::>().unwrap(); let mut v = unsafe { arr.as_array_mut() }; - v.par_mapv_inplace(|v| if v == cond { fv } else { v }); + v.mapv_inplace(|v| if v == cond { fv } else { v }); } }