diff rust/hg-pyo3/src/convert_cpython.rs @ 52532:3ffcdbf0b432

rust: test AncestorsIterator without duplication Up to now, it was acceptable to duplicate the test in `test-rust-ancestor.py` that was relevant to `dagop`. Now that we have more PyO3 implementations, it is better, and actually more convincing, to express the tests in a common base class (has technically to be a mixin to avoid running the tests from the base class itself).
author Georges Racinet <georges.racinet@cloudcrane.io>
date Sat, 07 Dec 2024 18:42:06 +0100
parents 4c9e31984b3a
children 6b694bdf752a
line wrap: on
line diff
--- a/rust/hg-pyo3/src/convert_cpython.rs	Sat Dec 07 18:38:37 2024 +0100
+++ b/rust/hg-pyo3/src/convert_cpython.rs	Sat Dec 07 18:42:06 2024 +0100
@@ -236,7 +236,6 @@
 /// # Safety
 ///
 /// See [`py_leaked_borrow`]
-#[allow(dead_code)]
 pub(crate) unsafe fn py_leaked_borrow_mut<'a, 'py: 'a, T>(
     py: &impl WithGIL<'py>,
     leaked: &'a mut cpython::UnsafePyLeaked<T>,