Show More
@@ -323,7 +323,7 b' py_class!(pub class DirstateMap |py| {' | |||||
323 | let (leak_handle, leaked_ref) = unsafe { self.leak_immutable(py)? }; |
|
323 | let (leak_handle, leaked_ref) = unsafe { self.leak_immutable(py)? }; | |
324 | DirstateMapKeysIterator::from_inner( |
|
324 | DirstateMapKeysIterator::from_inner( | |
325 | py, |
|
325 | py, | |
326 |
|
|
326 | leak_handle, | |
327 | leaked_ref.iter(), |
|
327 | leaked_ref.iter(), | |
328 | ) |
|
328 | ) | |
329 | } |
|
329 | } | |
@@ -332,7 +332,7 b' py_class!(pub class DirstateMap |py| {' | |||||
332 | let (leak_handle, leaked_ref) = unsafe { self.leak_immutable(py)? }; |
|
332 | let (leak_handle, leaked_ref) = unsafe { self.leak_immutable(py)? }; | |
333 | DirstateMapItemsIterator::from_inner( |
|
333 | DirstateMapItemsIterator::from_inner( | |
334 | py, |
|
334 | py, | |
335 |
|
|
335 | leak_handle, | |
336 | leaked_ref.iter(), |
|
336 | leaked_ref.iter(), | |
337 | ) |
|
337 | ) | |
338 | } |
|
338 | } | |
@@ -341,7 +341,7 b' py_class!(pub class DirstateMap |py| {' | |||||
341 | let (leak_handle, leaked_ref) = unsafe { self.leak_immutable(py)? }; |
|
341 | let (leak_handle, leaked_ref) = unsafe { self.leak_immutable(py)? }; | |
342 | DirstateMapKeysIterator::from_inner( |
|
342 | DirstateMapKeysIterator::from_inner( | |
343 | py, |
|
343 | py, | |
344 |
|
|
344 | leak_handle, | |
345 | leaked_ref.iter(), |
|
345 | leaked_ref.iter(), | |
346 | ) |
|
346 | ) | |
347 | } |
|
347 | } | |
@@ -438,7 +438,7 b' py_class!(pub class DirstateMap |py| {' | |||||
438 | let (leak_handle, leaked_ref) = unsafe { self.leak_immutable(py)? }; |
|
438 | let (leak_handle, leaked_ref) = unsafe { self.leak_immutable(py)? }; | |
439 | CopyMapKeysIterator::from_inner( |
|
439 | CopyMapKeysIterator::from_inner( | |
440 | py, |
|
440 | py, | |
441 |
|
|
441 | leak_handle, | |
442 | leaked_ref.copy_map.iter(), |
|
442 | leaked_ref.copy_map.iter(), | |
443 | ) |
|
443 | ) | |
444 | } |
|
444 | } | |
@@ -447,7 +447,7 b' py_class!(pub class DirstateMap |py| {' | |||||
447 | let (leak_handle, leaked_ref) = unsafe { self.leak_immutable(py)? }; |
|
447 | let (leak_handle, leaked_ref) = unsafe { self.leak_immutable(py)? }; | |
448 | CopyMapItemsIterator::from_inner( |
|
448 | CopyMapItemsIterator::from_inner( | |
449 | py, |
|
449 | py, | |
450 |
|
|
450 | leak_handle, | |
451 | leaked_ref.copy_map.iter(), |
|
451 | leaked_ref.copy_map.iter(), | |
452 | ) |
|
452 | ) | |
453 | } |
|
453 | } |
@@ -378,12 +378,12 b' macro_rules! py_shared_iterator {' | |||||
378 | impl $name { |
|
378 | impl $name { | |
379 | pub fn from_inner( |
|
379 | pub fn from_inner( | |
380 | py: Python, |
|
380 | py: Python, | |
381 |
leaked: |
|
381 | leaked: $leaked, | |
382 | it: $iterator_type |
|
382 | it: $iterator_type | |
383 | ) -> PyResult<Self> { |
|
383 | ) -> PyResult<Self> { | |
384 | Self::create_instance( |
|
384 | Self::create_instance( | |
385 | py, |
|
385 | py, | |
386 | RefCell::new(leaked), |
|
386 | RefCell::new(Some(leaked)), | |
387 | RefCell::new(it) |
|
387 | RefCell::new(it) | |
388 | ) |
|
388 | ) | |
389 | } |
|
389 | } |
General Comments 0
You need to be logged in to leave comments.
Login now