rust/hg-pyo3/src/convert_cpython.rs
changeset 52531 4c9e31984b3a
parent 52530 736551565871
child 52532 3ffcdbf0b432
--- 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>>,