--- a/rust/hg-pyo3/src/convert_cpython.rs Sat Dec 07 18:24:24 2024 +0100
+++ b/rust/hg-pyo3/src/convert_cpython.rs Sat Dec 07 18:38:37 2024 +0100
@@ -263,7 +263,6 @@
/// This would spare users of the `cpython` crate the additional `unsafe` deref
/// to inspect the error and return it outside `UnsafePyLeaked`, and the
/// subsequent unwrapping that this function performs.
-#[allow(dead_code)]
pub(crate) fn py_leaked_or_map_err<T, E: std::fmt::Debug + Copy>(
py: cpython::Python,
leaked: cpython::UnsafePyLeaked<Result<T, E>>,