rust/hg-cpython/src/revlog.rs
changeset 51233 ca81cd96000a
parent 51232 3551f2a1c963
child 51234 59183a19954e
equal deleted inserted replaced
51232:3551f2a1c963 51233:ca81cd96000a
   518 unsafe fn mmap_keeparound(
   518 unsafe fn mmap_keeparound(
   519     py: Python,
   519     py: Python,
   520     data: PyObject,
   520     data: PyObject,
   521 ) -> PyResult<(
   521 ) -> PyResult<(
   522     PyBuffer,
   522     PyBuffer,
   523     Box<dyn std::ops::Deref<Target = [u8]> + Send + 'static>,
   523     Box<dyn std::ops::Deref<Target = [u8]> + Send + Sync + 'static>,
   524 )> {
   524 )> {
   525     let buf = PyBuffer::get(py, &data)?;
   525     let buf = PyBuffer::get(py, &data)?;
   526     let len = buf.item_count();
   526     let len = buf.item_count();
   527 
   527 
   528     // Build a slice from the mmap'ed buffer data
   528     // Build a slice from the mmap'ed buffer data